RoUnregisterForApartmentShutdown function (roapi.h)

Unregisters a previously registered IApartmentShutdown interface.

Syntax

HRESULT RoUnregisterForApartmentShutdown(
  APARTMENT_SHUTDOWN_REGISTRATION_COOKIE regCookie
);

Parameters

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  
 
Don't call the RoUnregisterForApartmentShutdown function from the OnUninitialize callback.

Requirements

   
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

See also

IApartmentShutdown

RoRegisterForApartmentShutdown