Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.28 KB

File metadata and controls

44 lines (31 loc) · 1.28 KB

Home

Function name : GlobalUnlock

Group: Memory Management - Library: kernel32


Decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE. This function has no effect on memory objects allocated with GMEM_FIXED.


Code examples:

Copying strings through the global memory block
Opening the Page Setup dialog box to specify the attributes of a printed page
Enumerating network resources
Passing data records between VFP applications via the Clipboard

Declaration:

BOOL GlobalUnlock(
  HGLOBAL hMem   // handle to global memory object
);  

FoxPro declaration:

DECLARE INTEGER GlobalUnlock IN kernel32;
	INTEGER hMem  

Parameters:

hMem [in] Handle to the global memory object. This handle is returned by either the GlobalAlloc or GlobalReAlloc function.


Return value:

If the memory object is still locked after decrementing the lock count, the return value is a nonzero value.