Expand Minimize

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.

Remarks

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Roapi.h

See also

IApartmentShutdown
RoRegisterForApartmentShutdown
RoUnregisterForApartmentShutdown

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.