Solved

Taskman

Posted on 1998-12-02
5
162 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS Access - Capture pressed key onclick 4 33
bit defender blocks good applications 2 94
MS Date Picker 64 bit 32 bit issue 12 53
Send outlook email from VBS Script 2 29
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

770 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