Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1019 Bytes

WTSFreeMemory.md

File metadata and controls

49 lines (32 loc) · 1019 Bytes

Home

Function name : WTSFreeMemory

Group: Terminal Services - Library: wtsapi32


Frees memory allocated by a Terminal Services function.


Code examples:

How to enumerate sessions and processes on a specified terminal server
How to enumerate terminal servers within the specified Windows domain

Declaration:

void WTSFreeMemory(
	PVOID pMemory
);  

FoxPro declaration:

DECLARE WTSFreeMemory IN Wtsapi32;
	INTEGER pMemory  

Parameters:

pMemory [in] Pointer to the memory to free.


Return value:

This function does not return a value.


Comments:

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