Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.01 KB

CoTaskMemFree.md

File metadata and controls

43 lines (30 loc) · 1.01 KB

Home

Function name : CoTaskMemFree

Group: COM - Library: ole32


Frees a block of task memory previously allocated through a call to the CoTaskMemAlloc or CoTaskMemRealloc function.


Code examples:

Reading and setting explicit Application User Model ID for the current process (Win7)
Accessing the list of Windows Recent Documents
Browsing Windows Known Folders (Special Folders)

Declaration:

void CoTaskMemFree(
	__in_opt  LPVOID pv
);  

FoxPro declaration:

DECLARE CoTaskMemFree IN Ole32;
	INTEGER hMem  

Parameters:

pv [in, optional] A pointer to the memory block to be freed. If this parameter is NULL, the function has no effect.


Return value:

This function does not return a value.