Solved

Taskman

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 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 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…

710 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