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 terminal servers within the specified Windows domain
WTSEnumerateServers
..msdn    Add comment     W32 Constants      Translate this page
Returns a list of all terminal servers within the specified Windows NT domain.
Code examples:
How to enumerate terminal servers within the specified Windows domain
Declaration:
BOOL WTSEnumerateServers(
    LPTSTR pDomainName,
    DWORD Reserved,
    DWORD Version,
    PWTS_SERVER_INFO* ppServerInfo,
    DWORD* pCount
);
FoxPro declaration:
DECLARE INTEGER WTSEnumerateServers IN Wtsapi32;
    STRING pDomainName,;
    LONG Reserved,;
    LONG RqVersion,;
    LONG @ppServerInfo,;
    LONG @SICount
Parameters:
pDomainName
[in] Pointer to the name of the Windows NT domain to be queried.

Reserved
[in] Reserved. The value of this parameter must be 0.

Version
[in] Version of the enumeration request. The value of the parameter must be 1.

ppServerInfo
Points to an array of WTS_SERVER_INFO structures, which contains the returned results of the enumeration.

pCount
Pointer to a variable that receives the number of WTS_SERVER_INFO structures returned in the ppServerInfo buffer.
Return value:
If the function succeeds, the return value is a nonzero value.
My comment:
If pDomainName is NULL, the specified domain is the current domain.

After use, the memory used by ppServerInfo should be freed by calling WTSFreeMemory.
Word Index links for the WTSEnumerateServers :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-12-29 15:45:35
Modified: 2006-12-29 15:49:04
Visited in last 7 days: 17
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.80.132.10)
14 sec.Function: 'GetSystemDirectory'
Google
Advertise here!