![]() |
|
#17
|
||||
|
||||
|
Hi, you can create a new desktop object, which avoids Alt + Tab, Ctrl + Alt + Del ..
Code:
hOldThreadDesktop := GetThreadDesktop(GetCurrentThreadId);
hOldInputDesktop := OpenInputDesktop(0, FALSE, DESKTOP_CREATEWINDOW + DESKTOP_SWITCHDESKTOP);
hLockedDesktop := CreateDesktop('LockedDesktop', nil, nil, 0, DESKTOP_CREATEWINDOW + DESKTOP_SWITCHDESKTOP, nil);
SetThreadDesktop(hLockedDesktop);
SwitchDesktop(hLockedDesktop);
Code:
SI.cb := SizeOf(StartupInfo);
SI.lpDesktop := PChar('LockedDesktop');
If CreateProcess(nil, 'YourApp.exe', nil, nil, True, 0, nil, nil, SI, PI) Then
WaitForSingleObject(PI.hProcess, INFINITE);
Code:
if hOldInputDesktop <> 0 then SwitchDesktop(hOldInputDesktop); if hOldThreadDesktop <> 0 then SetThreadDesktop(hOldThreadDesktop); if hLockedDesktop <> 0 then CloseDesktop(hLockedDesktop); See Desktops @ MSDN Have fun! BoB |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ctrl-Minus in Hiew | mer0x36 | General Discussion | 2 | 12-12-2024 03:47 |
| How to disable VM detection? | te$ter | General Discussion | 3 | 05-16-2015 17:06 |
| Origins of Ctrl-Alt-Del | Anticode | General Discussion | 0 | 04-17-2005 20:16 |
| Why?the kb is disable | 3boy | General Discussion | 1 | 09-03-2003 20:22 |