Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Hide the script in the Ctrl-Alt-Del list

Keywords:    hide ctrl-alt-del

The following function hides the script in the Ctrl-Alt-Del list:
#DefineFunction Hide(dwType)
sDLLName = StrCat(DirWindows(1), "kernel32.dll")
dwProcessID = DLLCall(sDLLName, long:"GetCurrentProcessId")
DLLCall(sDLLName, long:"RegisterServiceProcess", long:dwProcessID, long:dwType)
#EndFunction

;dwType = 1 hide
;0 = show

Article ID:   W15157