IMSAdminBase::CloseKey

The IMSAdminBase::CloseKey method closes a handle to a key. If the handle was opened with write permission and changes have been made, this will cause any callback methods registered to be called.

HRESULT CloseKey(
      METADATA_HANDLE hMDHandle
);

Parameters

Return Values

Returns an HRESULT that contains one of the following values:

Value

Description

E_HANDLE

The handle is not valid.

S_OK

The method succeeded.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.