Solved

Taskman

Posted on 1998-12-02
5
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

631 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