UnlockResource

Syntax

BOOL UnlockResource(hResData)

This macro unlocks the resource specified by the hResData parameter and decreases the resource's reference count by one.

Parameter Type/Description  

hResData HANDLE Identifies the global memory block to be unlocked.  

Return Value

The return value specifies the outcome of the macro. It is zero if the block's reference count is decreased to zero. Otherwise, it is nonzero.