|
-
March 19th, 2003, 09:31 PM
#1
Hiding running process.
I used "ShowWindow(SW_HIDE)" to hide running application in taskbar and taskmanager but I can't hide it's process.
Please help me!
-
March 20th, 2003, 08:58 AM
#2
I don't understand your question...
Have you created a process out of your application or is this
process your application?
-
March 23rd, 2003, 08:07 PM
#3
I want to hide the process of my application. Please help me.
Thank!
-
March 24th, 2003, 02:30 AM
#4
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();"
-
March 24th, 2003, 01:51 PM
#5
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.
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
"It's hard to believe in something you don't understand." -- the sidhi X-files episode
galathaea: prankster, fablist, magician, liar
-
March 25th, 2003, 02:31 AM
#6
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);
Bengi
-
March 25th, 2003, 03:09 AM
#7
Thank you!
-
March 25th, 2003, 03:34 AM
#8
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...
-
March 25th, 2003, 03:51 AM
#9
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|