Share via


IOCTL_SERVICE_QUERY_CAN_DEINIT (Windows CE 5.0)

Send Feedback

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

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

See Also

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.