How to do "Switch user" operation of the windows using an MFC application.I was searching for the same in the google but didnt get any idea.I got the below function to logoff.
(With this function iam able to logoff the system)
#define EWX_LOGOFF 0
#define EWX_SHUTDOWN 0x00000001
#define EWX_REBOOT 0x00000002
#define EWX_FORCE 0x00000004
#define EWX_POWEROFF 0x00000008
#if(_WIN32_WINNT >= 0x0500)
#define EWX_FORCEIFHUNG 0x00000010
#endif /* _WIN32_WINNT >= 0x0500 */
#define EWX_QUICKRESOLVE 0x00000020
#if(_WIN32_WINNT >= 0x0600)
#define EWX_RESTARTAPPS 0x00000040
So is there any thing such kind APIs to do window Switch user.Thanks in Advance.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)