Update of /cvsroot/pywin32/pywin32/win32/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv5623/win32/src
Modified Files:
win32tsmodule.cpp
Log Message:
WTSGetActiveConsoleSessionId always raised NotImplementedError; it's in
kernel32
Index: win32tsmodule.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32tsmodule.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** win32tsmodule.cpp 18 Jul 2007 19:03:00 -0000 1.4
--- win32tsmodule.cpp 25 Oct 2008 00:17:19 -0000 1.5
***************
*** 792,796 ****
h=LoadLibrary(L"wtsapi32.dll");
if (h){
- pfnWTSGetActiveConsoleSessionId=(WTSGetActiveConsoleSessionIdfunc)GetProcAddress(h, "WTSGetActiveConsoleSessionId");
pfnWTSQueryUserToken=(WTSQueryUserTokenfunc)GetProcAddress(h, "WTSQueryUserToken");
pfnWTSRegisterSessionNotification=(WTSRegisterSessionNotificationfunc)GetProcAddress(h, "WTSRegisterSessionNotification");
--- 792,795 ----
***************
*** 801,805 ****
if (h==NULL)
h=LoadLibrary(L"kernel32.dll");
! if (h)
pfnProcessIdToSessionId=(ProcessIdToSessionIdfunc)GetProcAddress(h, "ProcessIdToSessionId");
}
--- 800,806 ----
if (h==NULL)
h=LoadLibrary(L"kernel32.dll");
! if (h) {
pfnProcessIdToSessionId=(ProcessIdToSessionIdfunc)GetProcAddress(h, "ProcessIdToSessionId");
+ pfnWTSGetActiveConsoleSessionId=(WTSGetActiveConsoleSessionIdfunc)GetProcAddress(h, "WTSGetActiveConsoleSessionId");
+ }
}
|