RoUnregisterForApartmentShutdown function
Unregisters a previously registered IApartmentShutdown interface.
Syntax
HRESULT WINAPI RoUnregisterForApartmentShutdown( _In_ APARTMENT_SHUTDOWN_REGISTRATION_COOKIE regCookie );
Parameters
- regCookie [in]
-
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
Don't call the RoUnregisterForApartmentShutdown function from the OnUninitialize callback.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: