Share via


IOCTL_SERVICE_QUERY_CAN_DEINIT (Windows Embedded CE 6.0)

1/6/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 GetLastError 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

See Also

Reference

Services.exe IOCTLS
xxx_IOControl (Services.exe)
xxx_Deinit (Services.exe)
DeregisterService