Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-22-2005, 10:20 PM VB task manager?
sk8boarder2424's Avatar
Extreme Talker

Posts: 175
Location: Lockport Illinois
Trades: 0
I am looking for a way to hide my exe from task managers "applications" tab, but leave it in the "processes" tab in Visual Basic 6... im fairly new to the program, so keep it simple
(sorry if this is wrong palce to post this)

any help would be appreciated,
-matt
__________________
"People created God in an effort to explain the unknown and soothe their fear of death."

-beasters
sk8boarder2424 is offline
Reply With Quote
View Public Profile Visit sk8boarder2424's homepage!
 
 
Register now for full access!
Old 03-23-2005, 06:37 AM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
Use RegisterServiceProcess in conjunction with GetCurrentProcessId.

Code:
Private Declare Function RegisterServiceProcess Lib "kernel32.dll" (ByVal dwProcessId As Long, ByVal dwType As Long) As Long
Private Declare Function GetCurrentProcessId Lib "kernel32.dll" () As Long
Then use something like this to toggle it:

Code:
Sub ShowInTaskList(ByVal bShowInTaskList As Boolean)
    RegisterServiceProcess GetCurrentProcessId, IIf(bShowInTaskList, 0, 1)
End Sub
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to VB task manager?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24518 seconds with 12 queries