Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.67 KB

LocalFree.md

File metadata and controls

50 lines (37 loc) · 1.67 KB

Home

Function name : LocalFree

Group: Memory Management - Library: kernel32


The LocalFree function frees the specified local memory object and invalidates its handle.


Code examples:

Creating a folder
Retrieving local computer and user names
Retrieving System Error message strings
StrDup returns a pointer to the duplicate of a source VFP string
Using Common Controls: the Header Control
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
GetFileOwner - Get the owner of an NTFS file
Pocket PC: base class
Encapsulating access to the Windows Services in a class
Reading security permissions for NTFS files and folders

Declaration:

HLOCAL LocalFree(
  HLOCAL hMem   //handle to local memory object
);  

FoxPro declaration:

DECLARE INTEGER LocalFree IN kernel32;
	INTEGER hMem  

Parameters:

hMem [in] Handle to the local memory object. This handle is returned by either the LocalAlloc or LocalReAlloc function.


Return value:

If the function succeeds, the return value is NULL. If the function fails, the return value is equal to a handle to the local memory object.