IOCTL_SERVICE_QUERY_CAN_DEINIT
A version of this page is also available for
4/8/2010
Services.exe calls the service's xxx_IOControl (Services.exe)function with this IOCTL as an input parameter before calling the xxx_Deinit (Services.exe) function in response to an application calling DeregisterService on a service.
Parameters
- pBufOut
[out] DWORD value that will be filled by the service. For more information, see the Remarks section.
Return Values
Returns TRUE if successful, FALSE otherwise. To obtain extended error information, call the SetLastError function.
Remarks
If the service does not wish to be unloaded, it should set the DWORD buffer in pBufOut to all zeros and return TRUE. In this case the service will not be unloaded and DeregisterService will fail and set the last error code to ERROR_SERVICE_CANNOT_ACCEPT_CTRL.
Requirements
Header | service.h |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
xxx_IOControl (Services.exe)
xxx_Deinit (Services.exe)
DeregisterService