UnlockResource

2.x

  BOOL UnlockResource(hResData)    
  HGLOBAL hResData; /* handle of memory object to unlock */

The UnlockResource macro unlocks the resource specified by the hResData parameter and decreases the reference count of the resource by one.

Parameters

hResData

Identifies the global memory object to be unlocked.

Return Value

The return value is zero if the object's reference count is decreased to zero. Otherwise, it is nonzero.

Comments

The UnlockResource macro is defined in WINDOWS.H as follows:

#define UnlockResource(h)   GlobalUnlock(h)

See Also

GlobalUnlock