Solved

Taskman

Posted on 1998-12-02
5
161 Views
Last Modified: 2010-05-03
How can I make a prog so that it can not be closed or exited by the endtask command. I don't  want to dissable Taskman and it would be ok if the prog didnt even show up in Taskman. Thanx (please include sorce code if you can)
0
Comment
Question by:marka64
  • 3
5 Comments
 

Author Comment

by:marka64
ID: 1447806
Edited text of question
0
 
LVL 3

Expert Comment

by:myqlG
ID: 1447807
I can think of a handful of reasons WHY.
I can also think of a million reasons why i SHOULDNT
answer this.  Could you please at least give us
a why you want/need this?

0
 

Accepted Solution

by:
kennym141282 earned 50 total points
ID: 1447808
ok declare these functions:

Declare Function RegisterServiceProcess Lib "kernel32" (ByVal lpProcessID As Long, ByVal lpShow As Long) As Long

Declare Function GetCurrentProcessId Lib "kernel32" () As Long

then, call it as follows:

(I cant remember which is which) but

ShowState = [1 or 0] ' Cant remember which number hides it! Sorry!

r = RegisterServiceProcess(GetCurrentProcessId, ShowState)

0
 

Author Comment

by:marka64
ID: 1447809
The reson I need this code is because im making a security program and it will have the option to run in stealth mode and only be able to be disabled by a shortcut key. If the program was to be shown in the taskman it could esaly be exited.
Thanks

kennym141282
As soon as I try the code and it works ill give you your points Thanks


0
 

Author Comment

by:marka64
ID: 1447810
Well it semingly is working thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now