Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Api function for Terminal Service
Message
De
21/07/2004 15:45:54
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
21/07/2004 14:29:53
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00926691
Message ID:
00926748
Vues:
19
Here is what I came up with, but when I ran the program I get :

"Function name is missing"
#DEFINE WTS_CURRENT_SERVER_HANDLE = 0
DECLARE Integer WTSEnumerateSessions  IN wtsapi32.dll ;
	                Integer hServer, ;
	                Integer Reserved, ;
	                Integer Version, ;
	                Integer @ppSessionInfo, ;
	                Integer @pCount	

RetVal = WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE,;
                              0, ;
                              1, ;
                              @lpBuffer, ;
                              @Count)

IF RetVal > 0
   =MESSAGEBOX("The function succeed: " + STR(RetVal))
ELSE
   =MESSAGEBOX("Did not succeed: "+STR(RetVal))
ENDIF
Is the foxpro declaration correct????


Here is the function reference :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtsenumeratesessions.asp


Any help is appreciated.
Sergio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform