Partager via


IOCTL_SERVICE_QUERY_CAN_DEINIT

Services.exe calls the service's xxx_IOControl function with this IOCTL as an input parameter before calling the xxx_Deinit 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 nonzero 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Service.h.

See Also

xxx_IOControl | xxx_Deinit | DeregisterService | Registering a Super Service Programmatically

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.