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.

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:
© 2016 Microsoft