While executing an exe file its normally shows as a n application. i need tht exe should run as a system process, i mean this shld work in back ground. Pls mail me if u ve any idea abt this
12-10-2003 at 05:41 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: converting an application to System Process
If u want to register ur program as a service then use this API's:
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
When you register your program as a service, it will continue to run after users log off.
____________________________
If you find the answer helpful, please mark this topic as solved.
Hi...
what i meant is that i called the function as mentioned in the link
GetCurrentProcessID works but when i call the function RegisterServiceProcess it gives me an error saying
"Runtime error 453
Cant find DLL entryPoint RegisterServiceProcess in kernel32"
what i am tryg to do is as follows:
i have made an application and want to run it on system-startup. adding it to the startup folder gives me the solution. but in this case, my app is listed in list of running applications. instead what i want is to add it to the list of running processes.
also it shud startup each time system startsup.. i hope i hav made my idea clear