RoGetApartmentIdentifier function

Gets a unique identifier for the current apartment.

Syntax


HRESULT WINAPI RoGetApartmentIdentifier(
  _Out_ UINT64 *apartmentIdentifier
);

Parameters

apartmentIdentifier [out]

A process-unique identifier for the current apartment.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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
RoUnregisterForApartmentShutdown

 

 

Show: