OpenResourceManager function (ktmw32.h)

Opens an existing resource manager (RM).

Syntax

HANDLE OpenResourceManager(
  [in] DWORD  dwDesiredAccess,
  [in] HANDLE TmHandle,
  [in] LPGUID ResourceManagerId
);

Parameters

[in] dwDesiredAccess

The access requested for the RM. See Resource Manager Access Masks for a list of valid values.

[in] TmHandle

A handle to the transaction manager.

[in] ResourceManagerId

The identifier for this resource manager.

Return value

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

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:

Remarks

Immediately after calling this function, you must call RecoverResourceManager.

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

CreateResourceManager

Kernel Transaction Manager Functions

Resource Manager Access Masks