OpenResourceManager

OpenResourceManager function

Opens an existing resource manager (RM).

Syntax


HANDLE WINAPI OpenResourceManager(
  _In_ DWORD  dwDesiredAccess,
  _In_        TmHandle,
  _In_ LPGUID RmGuid
);

Parameters

dwDesiredAccess [in]

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

TmHandle [in]

A handle to the transaction manager.

RmGuid [in]

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:

ERROR_ACCESS_DENIED
ERROR_INSUFFICIENT_RESOURCES
ERROR_INVALID_PARAMETER
ERROR_OBJECT_NAME_INVALID
ERROR_OBJECT_NAME_NOT_FOUND
ERROR_OBJECT_PATH_SYNTAX_BAD
ERROR_OBJECT_TYPE_MISMATCH
ERROR_PRIVILEGE_NOT_HELD

Remarks

Immediately after calling this function, you must call RecoverResourceManager.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ktmw32.h

Library

Ktmw32.lib

DLL

Ktmw32.dll

See also

CreateResourceManager
Kernel Transaction Manager Functions
Resource Manager Access Masks

 

 

Community Additions

ADD
Show:
© 2016 Microsoft