Advertisement
captmicro

Untitled

Jan 3rd, 2013
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. //Create new desktop
  2.     HDESK hDesk = CreateDesktopA("inswizmon", 0, 0,
  3.         DF_ALLOWOTHERACCOUNTHOOK,
  4.         DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | DESKTOP_HOOKCONTROL
  5.         | DESKTOP_READOBJECTS | DESKTOP_SWITCHDESKTOP | DESKTOP_WRITEOBJECTS, 0);
  6.     if (hDesk == 0)
  7.     {
  8.         //failed to create desktop
  9.     }
  10.     HDESK hOldDesk = GetThreadDesktop(GetCurrentProcessId());
  11. #ifdef _DEBUG
  12.     //SwitchDesktop(hDesk);
  13. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement