Using Win32 functions in Visual FoxPro Image Gallery
Terminal Services
..msdn
WTSCloseServer
WTSEnumerateProcesses
WTSEnumerateServers
WTSEnumerateSessions
WTSFreeMemory
WTSOpenServer
WTSQuerySessionInformation
WTSRegisterSessionNotification
WTSSendMessage
WTSUnRegisterSessionNotification
Code examples:
How to enumerate sessions and processes on a specified terminal server
WTSCloseServer
..msdn    Add comment     W32 Constants      Translate this page
Closes an open handle to a terminal server.
Code examples:
How to enumerate sessions and processes on a specified terminal server
Declaration:
void WTSCloseServer(
    HANDLE hServer
);
FoxPro declaration:
DECLARE WTSCloseServer IN Wtsapi32;
    INTEGER hServer
Parameters:
hServer
[in] Handle to a terminal server opened by a call to the WTSOpenServer function.
Return value:
This function does not return a value.
My comment:
Call the WTSCloseServer function as part of your program"s clean-up routine to close all the server handles opened by calls to the WTSOpenServer function.
Word Index links for the WTSCloseServer :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-12-29 15:58:07
Modified: 2006-12-29 15:59:48
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.199.178)
2 sec.Function: 'SetKeyboardState'
5 sec.Function: 'IsWindowVisible'
7 sec.Function: 'CreatePopupMenu'
10 sec.Function: 'CryptProtectData'
11 sec.Function: 'GetDiskFreeSpaceEx'
13 sec.Function: 'LookupPrivilegeName'
16 sec.Function: 'GetTextMetrics'
18 sec.Function: 'GetFileSecurity'
20 sec.Function: 'SetDlgItemText'
23 sec.Function: 'TerminateProcess'
Google
Advertise here!