Windows apps
Collapse the table of content
Expand the table of content
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.

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

Roapi.h

Library

RuntimeObject.lib

DLL

ComBase.dll

See also

IApartmentShutdown
RoRegisterForApartmentShutdown

 

 

Show:
© 2016 Microsoft