Funzione RoUnregisterForApartmentShutdown (roapi.h)

Annulla la registrazione di un'interfaccia IApartmentShutdown registrata in precedenza.

Sintassi

HRESULT RoUnregisterForApartmentShutdown(
  [in] APARTMENT_SHUTDOWN_REGISTRATION_COOKIE regCookie
);

Parameters

[in] regCookie

Cookie di registrazione ottenuto da una chiamata precedente alla funzione RoRegisterForApartmentShutdown .

Valore restituito

Se questa funzione ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT.

Remarks

La funzione RoUnregisterForApartmentShutdown deve essere chiamata dallo stesso apartment che ha registrato il callback.

Avviso  
 
Non chiamare la funzione RoUnregisterForApartmentShutdown dal callback OnUninitialize .

Requirements

Requirement Value
Client minimo supportato Windows 8 [app desktop | App UWP]
Server minimo supportato Windows Server 2012 [app desktop | App UWP]
Piattaforma di destinazione Windows
Header roapi.h
Library RuntimeObject.lib
DLL ComBase.dll

Vedere anche

IApartmentShutdown

RoRegisterForApartmentShutdown