Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create new desktop
- HDESK hDesk = CreateDesktopA("inswizmon", 0, 0,
- DF_ALLOWOTHERACCOUNTHOOK,
- DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | DESKTOP_HOOKCONTROL
- | DESKTOP_READOBJECTS | DESKTOP_SWITCHDESKTOP | DESKTOP_WRITEOBJECTS, 0);
- if (hDesk == 0)
- {
- //failed to create desktop
- }
- HDESK hOldDesk = GetThreadDesktop(GetCurrentProcessId());
- #ifdef _DEBUG
- //SwitchDesktop(hDesk);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement