Hello all,
I would like to use the WTSEnumerateSessions function that retrieves a list of sessions on a specified terminal server.
The problem that I have no experience using api functions.
I found an example in visual basic :
Private Declare Function WTSEnumerateSessions _
Lib "wtsapi32.dll" Alias "WTSEnumerateSessionsA" ( _
ByVal hServer As Long, ByVal Reserved As Long, _
ByVal Version As Long, ByRef ppSessionInfo As Long, _
ByRef pCount As Long _
) As Long
How can Declare it in visual foxpro?
I do not know how to use the Byref in Foxpro
Anyhelp is greatly appreciated.
Thanks,
Sergio