WTSFreeMemory function (wtsapi32.h)
Frees memory allocated by a Remote Desktop Services function.
C++
void WTSFreeMemory(
[in] PVOID pMemory
);
[in] pMemory
Pointer to the memory to free.
None
Several Remote Desktop Services functions allocate buffers to return information. Use the WTSFreeMemory function to free these buffers.
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) |