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  //metabase handle to close
);
 

Parameters

hMDHandle
Specifies the handle to close, as returned by the IMSAdminBase::OpenKey method.

Return Values

Returns an HRESULT that contains one of the following values:

ERROR_INVALID_HANDLE The handle is not valid.
ERROR_SUCCESS The method succeeded.


© 1997 by Microsoft Corporation. All rights reserved.