The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off.
To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call RegisterServiceProcess.
DWORD RegisterServiceProcess(
DWORD dwProcessId,
DWORD dwType
);
Value | Meaning |
---|---|
0 | Unregisters the process as a service process. |
1 | Registers the process as a service process. |
The return value is 1 if successful or 0 if an error occurs.