Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Api function for Terminal Service
Message
From
21/07/2004 15:45:54
 
 
To
21/07/2004 14:29:53
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00926691
Message ID:
00926748
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform