Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.16 KB

File metadata and controls

54 lines (36 loc) · 1.16 KB

Home

Function name : RegisterServiceProcess

Group: Process and Thread - Library: kernel32


The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off.


Code examples:

How to hide your program from the Close Program dialog (Win9* only)

Declaration:

DWORD RegisterServiceProcess(
  DWORD dwProcessId,
  DWORD dwType
);  

FoxPro declaration:

DECLARE INTEGER RegisterServiceProcess IN kernel32;
	INTEGER dwProcessId,;
	INTEGER dwType
  

Parameters:

dwProcessId Specifies the identifier of the process to register as a service process. Specifies NULL to register the current process.

dwType Specifies whether the service is to be registered or unregistered.


Return value:

The return value is 1 if successful or 0 if an error occurs.


Comments:

WinNT - unsupported.
Windows 95/98/Me only.