Edytuj

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

The RoUnregisterForApartmentShutdown function must be called from the same apartment that registered the callback.

Warning  
 
Don't call the RoUnregisterForApartmentShutdown function from the OnUninitialize callback.

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

See also

IApartmentShutdown

RoRegisterForApartmentShutdown