WTSFreeMemory function

Frees memory allocated by a Remote Desktop Services function.

Syntax

void WTSFreeMemory(
  IN PVOID pMemory
);

Parameters

pMemory

Pointer to the memory to free.

Return Value

This function does not return a value.

Remarks

Several Remote Desktop Services functions allocate buffers to return information. Use the WTSFreeMemory function to free these buffers.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wtsapi32.h
Library Wtsapi32.lib
DLL Wtsapi32.dll

See Also

WTSEnumerateProcesses

WTSEnumerateSessions

WTSQuerySessionInformation

WTSQueryUserConfig