WTSFreeMemory function (wtsapi32.h)
Frees memory allocated by a Remote Desktop Services function.
Syntax
void WTSFreeMemory(
[in] PVOID pMemory
);
Parameters
[in] pMemory
Pointer to the memory to free.
Return value
None
Remarks
Several Remote Desktop Services functions allocate buffers to return information. Use the WTSFreeMemory function to free these buffers.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wtsapi32.h |
Library | Wtsapi32.lib |
DLL | Wtsapi32.dll |
API set | ext-ms-win-session-wtsapi32-l1-1-0 (introduced in Windows 8) |