Ctrl-Alt-Delete: The Close Program Box
Posted on 1998-12-16
I'm attempting to prevent my application's name from being seen in the close program box
I've added the following code in the proper sections that contains the InitInstance function.
#define REGISTER 0
#define UNREGISTER 1
to the top of your main source code file (the one with the InitInstance function in it). Then add:
typedef DWORD (WINAPI *fp_RegServProc) (DWORD, DWORD);
fp_RegServProc pRegisterServiceProcess = NULL;
pRegisterServiceProcess = (fp_RegServProc) GetProcAddress (GetModuleHandle ("KERNEL32.dll"), "RegisterServiceProcess");
to your InitInstance member function.
Yet it doesn't work.
What have I done wrong????