CmtReleaseLock

int CmtReleaseLock (int lockHandle);

Purpose

Releases the thread lock.

You must call this function from the same thread that called CmtGetLock. You must call this function once for each time that you called CmtGetLock.

Parameters

Input
Name Type Description
lockHandle integer The handle you obtained from CmtNewLock to identify the thread lock.

Return Value

Name Type Description
CmtStatus integer The CmtStatus code that the function call returns. This function returns 0 to indicate success and negative values to indicate failure. Pass the CmtStatus code to CmtGetErrorMessage to get a description of the error code.