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
WTSOpenServer
..msdn    Add comment     W32 Constants      Translate this page
Opens a handle to the specified terminal server.
Code examples:
How to enumerate sessions and processes on a specified terminal server
Declaration:
HANDLE WTSOpenServer(
    LPTSTR pServerName
);
FoxPro declaration:
DECLARE INTEGER WTSOpenServer IN Wtsapi32;
    STRING pServerName
Parameters:
pServerName
[in] Pointer to a null-terminated string specifying the NetBIOS name of the terminal server.
Return value:
If the function succeeds, the return value is a handle to the specified server.
My comment:
When you are finished with the handle returned by WTSOpenServer, call the WTSCloseServer function to close it.

You do not need to open a handle for operations performed on the terminal server on which your application is running. Use the constant WTS_CURRENT_SERVER_HANDLE instead.
Word Index links for the WTSOpenServer :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-12-29 15:55:28
Modified: 2006-12-29 15:57:45
Visited in last 7 days: 11
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.38), 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.232.243)
16 sec.Function: 'NetConnectionEnum'
33 sec.Function: 'GetDIBits'
52 sec.Function: 'IsWindow'
1.22 min.Function: 'CeRegEnumKeyEx'
2.2 min.Function: 'SHSimpleIDListFromPath'
Google
Advertise here!