OpenEnlistment function (ktmw32.h)

Opens an existing enlistment object, and returns a handle to the enlistment.

Syntax

HANDLE OpenEnlistment(
  DWORD  dwDesiredAccess,
  HANDLE ResourceManagerHandle,
  LPGUID EnlistmentId
);

Parameters

dwDesiredAccess

The access requested for this enlistment. See Enlistment Access Masks for a list of valid values.

ResourceManagerHandle

A handle to the resource manager.

EnlistmentId

The enlistment identifier.

Return value

If the function succeeds, the return value is a handle to the enlistment.

If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call the GetLastError function.

The following list identifies the possible error codes:

Requirements

   
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

CreateEnlistment

Enlistment Access Masks

Kernel Transaction Manager Functions