hieu239
March 19th, 2003, 08:31 PM
I used "ShowWindow(SW_HIDE)" to hide running application in taskbar and taskmanager but I can't hide it's process.
Please help me!
Please help me!
|
Click to See Complete Forum and Search --> : Hiding running process. hieu239 March 19th, 2003, 08:31 PM I used "ShowWindow(SW_HIDE)" to hide running application in taskbar and taskmanager but I can't hide it's process. Please help me! Bernd Wagner March 20th, 2003, 07:58 AM I don't understand your question... Have you created a process out of your application or is this process your application? hieu239 March 23rd, 2003, 07:07 PM I want to hide the process of my application. Please help me. Thank! Bernd Wagner March 24th, 2003, 01:30 AM If u want to abort your running application, call up the OnCancel() message with the scope resolution operator Example: Your class is called "CTestClass" so u have to call up "CTestClass::OnCancel();" galathaea March 24th, 2003, 12:51 PM Hiding a process is a very complicated task. The easiest solution is to make your task a system service, since that will prevent the task manager from seeing your process. However, then your process can be seen from the service manager. The only other ways I know how are through brute force interception of the relevant APIs (toolhelp, PSAPI, NtQuerySystemProcess, etc.) and just not return the information about your process. For info to get you started on the latter, check out Ivo Ivanov's article in the System section of Codeguru. Bengi March 25th, 2003, 01:31 AM typedef (WINAPI REGSERVPROC)(DWORD, DWORD); typedef REGSERVPROC* LPREGISTERSERVICEPROCESS; HINSTANCE hLibrary; LPREGISTERSERVICEPROCESS regproc; hLibrary = LoadLibrary("kernel32.dll"); if (hLibrary) regproc = (LPREGISTERSERVICEPROCESS)GetProcAddress(hLibrary, "RegisterServiceProcess"); //call this when you want to hide the process from ctrl+alt+del window if (regproc) (regproc) (NULL, 1); //hide //call this when you close that app... if (regproc) (regproc) (0, 0); //show FreeLibrary(hLibrary); hieu239 March 25th, 2003, 02:09 AM Thank you!:) Mick March 25th, 2003, 02:34 AM Only works on Windoze 9.X there bengi. I prefer brute force Gal...Heh heh, filter me silly. And making yourself a service doesn't 'hide' you from anything :) But I guess many people ask this question, their purpose for asking is evident. Thank god, those that ask, wouldn't know how, thus they ask... Mick March 25th, 2003, 02:51 AM Lets expose this a little more, since it's early in the morning and I'm cranky. To what purpose do you want to 'hide' your application? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |