Update of /cvsroot/pywin32/pywin32/win32/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23541/win32/src
Modified Files:
win32security.i
Log Message:
We go the trouble of loading pfnLogonUserEx, we may as well use it to make
the call (and allow things to keep loading on win2k :)
Index: win32security.i
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/win32security.i,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** win32security.i 5 Sep 2007 01:24:08 -0000 1.46
--- win32security.i 29 Nov 2007 06:46:12 -0000 1.47
***************
*** 1083,1087 ****
&&PyWinObject_AsWCHAR(obdomain, &domain, TRUE)
&&PyWinObject_AsWCHAR(obpassword, &password, FALSE)){
! if (!LogonUserEx(username, domain, password, logontype, logonprovider, &htoken,
&psid, &profile, &profilelen, "a_limits))
PyWin_SetAPIError("LogonUserEx");
--- 1083,1087 ----
&&PyWinObject_AsWCHAR(obdomain, &domain, TRUE)
&&PyWinObject_AsWCHAR(obpassword, &password, FALSE)){
! if (!(*pfnLogonUserEx)(username, domain, password, logontype, logonprovider, &htoken,
&psid, &profile, &profilelen, "a_limits))
PyWin_SetAPIError("LogonUserEx");
|