[pywin32-checkins] pywin32/win32/src win2krasmodule.cpp,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-01-20 18:56:16
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9354/win32/src Modified Files: win2krasmodule.cpp Log Message: Fix place where HWND was treated as an int Index: win2krasmodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win2krasmodule.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** win2krasmodule.cpp 27 Oct 2001 06:22:10 -0000 1.4 --- win2krasmodule.cpp 20 Jan 2007 18:56:13 -0000 1.5 *************** *** 134,139 **** char *phoneBook, *entry; int flags; ! int hwnd = 0; ! if (!PyArg_ParseTuple(args, "zsi|i:GetEapUserIdentity", &phoneBook, // @pyparm string|phoneBook||string containing the full path of the phone-book (PBK) file. If this parameter is None, the function will use the system phone book. &entry,// @pyparm string|entry||string containing an existing entry name. --- 134,140 ---- char *phoneBook, *entry; int flags; ! HWND hwnd; ! PyObject *obhwnd=Py_None; ! if (!PyArg_ParseTuple(args, "zsi|O:GetEapUserIdentity", &phoneBook, // @pyparm string|phoneBook||string containing the full path of the phone-book (PBK) file. If this parameter is None, the function will use the system phone book. &entry,// @pyparm string|entry||string containing an existing entry name. *************** *** 143,148 **** // @flag RASEAPF_Logon|Specifies that the user data is obtained from Winlogon. // @flag RASEAPF_Preview|Specifies that the user should be prompted for identity information before dialing. ! &hwnd)) // @pyparm int|hwnd|0|Handle to the parent window for the UI dialog. ! return NULL; --- 144,150 ---- // @flag RASEAPF_Logon|Specifies that the user data is obtained from Winlogon. // @flag RASEAPF_Preview|Specifies that the user should be prompted for identity information before dialing. ! &obhwnd)) // @pyparm <o PyHANDLE>|hwnd|None|Handle to the parent window for the UI dialog. ! return NULL; ! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd, TRUE)) return NULL; *************** *** 151,155 **** RASEAPUSERIDENTITY *identity; Py_BEGIN_ALLOW_THREADS ! rc = RasGetEapUserIdentity(phoneBook, entry, flags, (HWND)hwnd, &identity); Py_END_ALLOW_THREADS if (rc != 0) --- 153,157 ---- RASEAPUSERIDENTITY *identity; Py_BEGIN_ALLOW_THREADS ! rc = RasGetEapUserIdentity(phoneBook, entry, flags, hwnd, &identity); Py_END_ALLOW_THREADS if (rc != 0) |