Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Roapi.h

Library

RuntimeObject.lib

DLL

ComBase.dll

See also

IApartmentShutdown
RoRegisterForApartmentShutdown

 

 

Community Additions

Show:
© 2015 Microsoft