@@ -2532,15 +2532,14 @@ static PyObject *PyShellExecuteEx(PyObject *self, PyObject *args, PyObject *kw)
2532
2532
2533
2533
static char *kw_items[] = {
2534
2534
" fMask" , " hwnd" , " lpVerb" , " lpFile" , " lpParameters" , " lpDirectory" , " nShow" ,
2535
- " lpIDList" , " lpClass" , " hkeyClass" , " dwHotKey" , " hIcon " , " hMonitor" , NULL ,
2535
+ " lpIDList" , " lpClass" , " hkeyClass" , " dwHotKey" , " hMonitor" , NULL ,
2536
2536
};
2537
2537
PyObject *obhwnd = Py_None, *obVerb = NULL , *obFile = NULL , *obParams = NULL ;
2538
2538
PyObject *obDirectory = NULL , *obIDList = NULL , *obClass = NULL ;
2539
- PyObject *obhkeyClass = NULL , *obHotKey = NULL , *obhIcon = NULL ;
2540
- PyObject *obhMonitor = NULL ;
2541
- // @pyparm int|fMask|0|The default mask for the structure. Other
2542
- // masks may be added based on what paramaters are supplied.
2543
- if (!PyArg_ParseTupleAndKeywords (args, kw, " |lOOOOOlOOOOOO" , kw_items, &info.fMask ,
2539
+ PyObject *obhkeyClass = NULL , *obHotKey = NULL , *obhMonitor = NULL ;
2540
+ if (!PyArg_ParseTupleAndKeywords (args, kw, " |lOOOOOlOOOOO" , kw_items,
2541
+ &info.fMask , // @pyparm int|fMask|0|The default mask for the structure.
2542
+ // Other masks may be added based on what paramaters are supplied.
2544
2543
&obhwnd, // @pyparm <o PyHANDLE>|hwnd|0|
2545
2544
&obVerb, // @pyparm string|lpVerb||
2546
2545
&obFile, // @pyparm string|lpFile||
@@ -2551,7 +2550,6 @@ static PyObject *PyShellExecuteEx(PyObject *self, PyObject *args, PyObject *kw)
2551
2550
&obClass, // @pyparm string|obClass||
2552
2551
&obhkeyClass, // @pyparm int|hkeyClass||
2553
2552
&obHotKey, // @pyparm int|dwHotKey||
2554
- &obhIcon, // @pyparm <o PyHANDLE>|hIcon||
2555
2553
&obhMonitor)) // @pyparm <o PyHANDLE>|hMonitor||
2556
2554
goto done;
2557
2555
if (!PyWinObject_AsHANDLE (obhwnd, (HANDLE *)&info.hwnd ))
@@ -2585,17 +2583,6 @@ static PyObject *PyShellExecuteEx(PyObject *self, PyObject *args, PyObject *kw)
2585
2583
if (PyErr_Occurred ())
2586
2584
goto done;
2587
2585
}
2588
- if (obhIcon) {
2589
- // SEE_MASK_ICON is defined around 'if (NTDDI_VERSION < NTDDI_LONGHORN)' and commented as 'not used'
2590
- #ifndef SEE_MASK_ICON
2591
- PyErr_SetString (PyExc_NotImplementedError, " SEE_MASK_ICON not declared on this platform" );
2592
- goto done;
2593
- #else
2594
- info.fMask |= SEE_MASK_ICON;
2595
- if (!PyWinObject_AsHANDLE (obhIcon, &info.hIcon ))
2596
- goto done;
2597
- #endif
2598
- }
2599
2586
if (obhMonitor) {
2600
2587
info.fMask |= SEE_MASK_HMONITOR;
2601
2588
if (!PyWinObject_AsHANDLE (obhMonitor, &info.hMonitor ))
0 commit comments