Export (0) Print
Expand All

GetEnlistmentId function

Obtains the identifier (ID) for the specified enlistment.

Syntax


BOOL WINAPI GetEnlistmentId(
  _In_   HANDLE EnlistmentHandle,
  _Out_  LPGUID EnlistmentId
);

Parameters

EnlistmentHandle [in]

A handle to the enlistment.

EnlistmentId [out]

A pointer to a variables that receives the ID of the enlistment.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is 0 (zero). To get extended error information, call the GetLastError function.

The following list identifies the possible error codes:

ERROR_ACCESS_DENIED
ERROR_INVALID_HANDLE
ERROR_INSUFFICIENT_RESOURCES
ERROR_TRANSACTION_ALREADY_ABORTED

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ktmw32.h

Library

Ktmw32.lib

DLL

Ktmw32.dll

See also

Kernel Transaction Manager Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft