VirtualFree
VirtualFree frees memory allocated with VirtualAlloc.
Syntax
BOOL WINAPI VirtualFree(
[in] LPVOID lpAddress,
[in] SIZE_T dwSize,
[in] DWORD dwFreeType
);
Parameters
[in] lpAddress
A pointer previously returned by VirtualAlloc. This pointer cannot point to arbitrary memory. It must be the value returned from a previous call to VirtualAlloc.
[in] dwSize
This must be zero.
[in] dwFreeType
This must be MEM_RELEASE.
Return Value
If the function succeeds, it returns a non-zero value. If the function fails, it returns 0 (zero).
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
windows.h |
wRTOS_rtss.lib |
See Also: