Hi Everyone,
I am creating an application to interface with Terminal Services but as you
will learn I am a beginner. I have learned how to connect to the API to use
the functions available. One of the functions I would like to use is the
following:
BOOL WTSWaitSystemEv ent(
HANDLE hServer,
DWORD EventMask,
DWORD* pEventFlags
);
The following are my available choices for [DWORD EventMask]:
#define WTS_EVENT_NONE 0x00000000
#define WTS_EVENT_CREAT E 0x00000001
#define WTS_EVENT_DELET E 0x00000002
#define WTS_EVENT_RENAM E 0x00000004
#define WTS_EVENT_CONNE CT 0x00000008
#define WTS_EVENT_DISCO NNECT 0x00000010
#define WTS_EVENT_LOGON 0x00000020
#define WTS_EVENT_LOGOF F 0x00000040
#define WTS_EVENT_STATE CHANGE 0x00000080
#define WTS_EVENT_LICEN SE 0x00000100
#define WTS_EVENT_ALL 0x7fffffff <-- I am not sure how to convert
these and what they are?
#define WTS_EVENT_FLUSH 0x80000000
The constants will be Long in Visual Basic but how can I define what the
constant value will be? What will the long numerical value be? Hope I am
making sense..
Thanks
Jeremie Legault
jl******@system fix.ca