RoUnregisterForApartmentShutdown function (roapi.h)
Unregisters a previously registered IApartmentShutdown interface.
Syntax
HRESULT RoUnregisterForApartmentShutdown(
[in] APARTMENT_SHUTDOWN_REGISTRATION_COOKIE regCookie
);
Parameters
[in] regCookie
A registration cookie obtained from a previous call to the RoRegisterForApartmentShutdown function.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Call the RoUnregisterForApartmentShutdown to stop receiving apartment shutdown notifications and unregister a previously registered IApartmentShutdown interface.
Warning
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | roapi.h |
Library | RuntimeObject.lib |
DLL | ComBase.dll |