GetEnlistmentId function (ktmw32.h)

Obtains the identifier (ID) for the specified enlistment.

Syntax

BOOL GetEnlistmentId(
  [in]  HANDLE EnlistmentHandle,
  [out] LPGUID EnlistmentId
);

Parameters

[in] EnlistmentHandle

A handle to the enlistment.

[out] EnlistmentId

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:

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ktmw32.h
Library Ktmw32.lib
DLL Ktmw32.dll

See also

Kernel Transaction Manager Functions