Solved

Taskman

Posted on 1998-12-02
5
159 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
Comment Utility
Edited text of question
0
 
LVL 3

Expert Comment

by:myqlG
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Well it semingly is working thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

6 Experts available now in Live!

Get 1:1 Help Now