The IMSAdminBase::GetLastChangeTime method retrieves the last change time associated with a key.
HRESULT GetLastChangeTime(
METADATA_HANDLE hMDHandle, //metabase handle.
LPCWSTR pszMDPath, //path to the key, relative to
// hMDHandle
PFILETIME pftMDLastChangeTime //receives the last change time
BOOL bLocalTime //local or UTC time
);
Returns an HRESULT that contains one of the following values:
Value | Description |
---|---|
ERROR_INVALID_PARAMETER | The parameter is incorrect. |
ERROR_PATH_NOT_FOUND | The specified path is not found. |
ERROR_SUCCESS | The method succeeded. |
Last change times are updated whenever data or subkeys are set, added, renamed, deleted, copied, or moved, or when this method is called.