I've been trying with mixed luck to get the session type. Ironically I had this working at one point but it now fails to prove the correct answer. #define WTS_CURRENT_SESSION -1 #define WTSClientProtocolType 16#define WTS_CURRENT_SERVER_HA...
I've changed my code again and it works fine prototype stdcall wtsapi32.WTSQuerySessionInformationA(NUMBER, NUMBER, NUMBER, BYREF POINTER, BYREF LONG); LONG nReturnBytes; POINTER pointerToPointer; nSuccess = wtsapi32.WTSQuerySess...