Library tutorials & articles
API Programming Series #4
- Introduction
- The concept
- The code
- Remove from CAD list
- Analysis
Introduction
This article deals with hiding an Application from the Windows task list. As developers, we often feel the need to run certain processes in the background that provide support services to another application. In such cases it is desirable that this support application doesn't show up in the Alt-Ctrl-Del list (also called the "hit-list") as this may enable the user to kill it causing an application/system crash. In this article we'll discuss how to achieve this in a VB application using API programming.
Note 1: This contents of this article applies to Win9x/Me based machines only. This will NOT work on WinNT/2k based machines.
Note 2: If you are new to Win32 API Programming using Visual Basic, then please go through my introductory Articles to get a basic understanding of what Win32 API is and how you can use it from within Visual basic. Article 1 deals with the concept of Win32 API Programming as applied to Visual Basic and Article 2 explains how to access and use the Win32 APIĀ from within VB.
Related articles
Related discussion
-
Run-time error '91'
by crazyidane (0 replies)
-
Problem handling Redirects with MSXML2.XMLHTTP
by brandoncampbell (2 replies)
-
vbinputbox pauses code while it waits on response. How can I reproduce that?
by brandoncampbell (1 replies)
-
Sending SMS in VB 6
by sirobnole (6 replies)
-
Comboxbox listindex in ActiveX Control
by brandoncampbell (1 replies)
I have got a Problem in code. Unable to find an entry point named 'RegisterServiceProcess' in DLL 'kernel32.dll'.
i got teh same problem!!!
I get the error: 453: Can't find DLL entry point RegisterServiceProcess in kernel32.
What does this mean?
How do I fix it?
You have written this:
"As always, mail me if you have any comments or questions"
How can we email you, when your email is hidden?
Yes, it is.
The reason I didnt code it that way was to keep the example simpler, though I admit that this did make it a little longer and less elegant.
Primarily, I wanted to focus on the API call I wanted to explain.
However, now that I see it in black and white, I kinda like it.
So may be I'll go ahead and modify my code.
Thanks
Private Sub MakeUnmake(MakeOrNot As Boolean)
Dim pid As Long
Dim regserv As Long
If MakeOrNot = True Then
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSPSIMPLESERVICE)
Else
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSPUNREGISTERSERVICE)
End If
End Sub
eh?
vc
i really thank you for this arguement but next time use another examples than the allapi viewr??
but anyway i read all the allapi viewer api functions and i know whats there right now and it s really good in addition of being confusing
This thread is for discussions of API Programming Series #4.