Fonction RoGetApartmentIdentifier (roapi.h)

Obtient un identificateur unique pour l’appartement actuel.

Syntaxe

HRESULT RoGetApartmentIdentifier(
  [out] UINT64 *apartmentIdentifier
);

Paramètres

[out] apartmentIdentifier

Identificateur unique de processus pour l’appartement actuel.

Valeur retournée

Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

   
Client minimal pris en charge Windows 8 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2012 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête roapi.h
Bibliothèque RuntimeObject.lib
DLL ComBase.dll

Voir aussi

IApartmentShutdown

RoRegisterForApartmentShutdown

RoUnregisterForApartmentShutdown