就是这个吧:<br>DWORD RegisterServiceProcess(<br> DWORD dwProcessId, <br> DWORD dwType <br>);<br> <br>Parameters<br>dwProcessId <br>Specifies the identifier of the process to register as a service process. Specifies NULL to register the current process. <br>dwType <br>Specifies whether the service is to be registered or unregistered. This parameter can be one of the following values. Value Meaning <br>0 Unregisters the process as a service process. <br>1 Registers the process as a service process. <br><br>Return Value<br>The return value is 1 if successful or 0 if an error occurs.