@@ -1422,7 +1422,6 @@ static PyObject *PySHGetFolderPath(PyObject *self, PyObject *args)
14221422}
14231423
14241424// @pymethod |shell|SHSetFolderPath|Sets the location of one of the special folders
1425- // @comm This function is only available on Windows 2000 or later
14261425static PyObject *PySHSetFolderPath (PyObject *self, PyObject *args)
14271426{
14281427 int csidl;
@@ -2631,11 +2630,6 @@ static PyObject *PyAssocCreate(PyObject *self, PyObject *args)
26312630// interface.
26322631static PyObject *PyAssocCreateForClasses (PyObject *self, PyObject *args)
26332632{
2634- // @comm This function is only available on Vista and later; a
2635- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2636- if (pfnAssocCreateForClasses == NULL )
2637- return PyCom_BuildPyException (E_NOTIMPL);
2638-
26392633 PyObject *ret = NULL ;
26402634 PyObject *obClasses, *obiid;
26412635 if (!PyArg_ParseTuple (args, " OO:AssocCreateForClasses" , &obClasses, &obiid))
@@ -2803,11 +2797,6 @@ done: {
28032797// defaults can be further configured via the IDefaultExtractIconInit interface.
28042798static PyObject *PySHCreateDefaultExtractIcon (PyObject *self, PyObject *args)
28052799{
2806- // @comm This function is only available on Vista and later; a
2807- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2808- if (pfnSHCreateDefaultExtractIcon == NULL )
2809- return PyCom_BuildPyException (E_NOTIMPL);
2810-
28112800 // be lazy - don't take IID as a param!
28122801 if (!PyArg_ParseTuple (args, " :SHCreateDefaultExtractIcon" ))
28132802 return NULL ;
@@ -2825,11 +2814,6 @@ static PyObject *PySHCreateDefaultExtractIcon(PyObject *self, PyObject *args)
28252814// @pymethod <o PyIUnknown>|shell|SHCreateDataObject|
28262815static PyObject *PySHCreateDataObject (PyObject *self, PyObject *args)
28272816{
2828- // @comm This function is only available on Vista and later; a
2829- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2830- if (pfnSHCreateDataObject == NULL )
2831- return PyCom_BuildPyException (E_NOTIMPL);
2832-
28332817 PyObject *ret = NULL ;
28342818 PyObject *obParent;
28352819 PyObject *obChildren;
@@ -2879,11 +2863,6 @@ static PyObject *PySHCreateDataObject(PyObject *self, PyObject *args)
28792863// @pymethod <o PyIUnknown>|shell|SHCreateDefaultContextMenu|
28802864static PyObject *PySHCreateDefaultContextMenu (PyObject *self, PyObject *args)
28812865{
2882- // @comm This function is only available on Vista and later; a
2883- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2884- if (pfnSHCreateDefaultContextMenu == NULL )
2885- return PyCom_BuildPyException (E_NOTIMPL);
2886-
28872866 PyObject *ret = NULL ;
28882867 PyObject *obdcm, *obiid;
28892868 IID iid = IID_IContextMenu;
@@ -2917,10 +2896,6 @@ static PyObject *PySHCreateDefaultContextMenu(PyObject *self, PyObject *args)
29172896// @pymethod str|shell|SHGetNameFromIDList|Retrieves the display name of an item from an ID list.
29182897static PyObject *PySHGetNameFromIDList (PyObject *self, PyObject *args)
29192898{
2920- // @comm This function is only available on Vista and later; a
2921- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2922- if (pfnSHGetNameFromIDList == NULL )
2923- return PyCom_BuildPyException (E_NOTIMPL);
29242899 PyObject *ret = NULL ;
29252900 PyObject *obpidl;
29262901 SIGDN flags;
@@ -2954,11 +2929,6 @@ static PyObject *PySHGetNameFromIDList(PyObject *self, PyObject *args)
29542929// @pymethod <o PyIShellItemArray>|shell|SHCreateShellItemArray|Creates a Shell item array object.
29552930static PyObject *PySHCreateShellItemArray (PyObject *self, PyObject *args)
29562931{
2957- // @comm This function is only available on Vista and later; a
2958- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
2959- if (pfnSHCreateShellItemArray == NULL )
2960- return PyCom_BuildPyException (E_NOTIMPL);
2961-
29622932 PyObject *ret = NULL ;
29632933 PyObject *obParent;
29642934 PyObject *obChildren;
@@ -3006,11 +2976,6 @@ static PyObject *PySHCreateShellItemArray(PyObject *self, PyObject *args)
30062976// interface that contains a list of items (eg CF_HDROP)
30072977static PyObject *PySHCreateShellItemArrayFromDataObject (PyObject *self, PyObject *args)
30082978{
3009- // @comm This function is only available on Vista and later; a
3010- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3011- if (pfnSHCreateShellItemArrayFromDataObject == NULL )
3012- return PyCom_BuildPyException (E_NOTIMPL);
3013-
30142979 PyObject *ret = NULL ;
30152980 PyObject *obdo;
30162981 PyObject *obiid = Py_None;
@@ -3046,11 +3011,6 @@ static PyObject *PySHCreateShellItemArrayFromDataObject(PyObject *self, PyObject
30463011// item identifiers
30473012static PyObject *PySHCreateShellItemArrayFromIDLists (PyObject *self, PyObject *args)
30483013{
3049- // @comm This function is only available on Vista and later; a
3050- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3051- if (pfnSHCreateShellItemArrayFromIDLists == NULL )
3052- return PyCom_BuildPyException (E_NOTIMPL);
3053-
30543014 PyObject *ret = NULL ;
30553015 PyObject *obpidls;
30563016 PCIDLIST_ABSOLUTE_ARRAY pidls = NULL ;
@@ -3084,11 +3044,6 @@ static PyObject *PySHCreateShellItemArrayFromIDLists(PyObject *self, PyObject *a
30843044// item
30853045static PyObject *PySHCreateShellItemArrayFromShellItem (PyObject *self, PyObject *args)
30863046{
3087- // @comm This function is only available on Vista and later; a
3088- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3089- if (pfnSHCreateShellItemArrayFromShellItem == NULL )
3090- return PyCom_BuildPyException (E_NOTIMPL);
3091-
30923047 PyObject *obsi;
30933048 IShellItem *isi = NULL ;
30943049 IID iid = IID_IShellItemArray;
@@ -3116,10 +3071,6 @@ static PyObject *PySHCreateShellItemArrayFromShellItem(PyObject *self, PyObject
31163071// object from a PIDL. Can also create <o PyIShellItem2> objects.
31173072static PyObject *PySHCreateItemFromIDList (PyObject *self, PyObject *args)
31183073{
3119- // @comm This function is only available on Vista and later; a
3120- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3121- if (pfnSHCreateItemFromIDList == NULL )
3122- return PyCom_BuildPyException (E_NOTIMPL);
31233074 PyObject *ret = NULL ;
31243075 PyObject *obpidl;
31253076 IID iid = IID_IShellItem;
@@ -3151,11 +3102,6 @@ static PyObject *PySHCreateItemFromIDList(PyObject *self, PyObject *args)
31513102// parsing name.
31523103static PyObject *PySHCreateItemFromParsingName (PyObject *self, PyObject *args)
31533104{
3154- // @comm This function is only available on Vista and later; a
3155- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3156- if (pfnSHCreateItemFromParsingName == NULL )
3157- return PyCom_BuildPyException (E_NOTIMPL);
3158-
31593105 PyObject *ret = NULL ;
31603106 PyObject *obname, *obctx, *obiid;
31613107 // @pyparm str|name||The display name of the item to create, eg a file path
@@ -3203,11 +3149,6 @@ static PyObject *PySHCreateItemFromParsingName(PyObject *self, PyObject *args)
32033149// relative parsing name.
32043150static PyObject *PySHCreateItemFromRelativeName (PyObject *self, PyObject *args)
32053151{
3206- // @comm This function is only available on Vista and later; a
3207- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3208- if (pfnSHCreateItemFromRelativeName == NULL )
3209- return PyCom_BuildPyException (E_NOTIMPL);
3210-
32113152 PyObject *ret = NULL ;
32123153 PyObject *obname, *obctx, *obiid, *obparent;
32133154 // @pyparm <o PyIShellItem>|Parent||Shell item interface on the parent folder
@@ -3267,11 +3208,6 @@ static PyObject *PySHCreateItemFromRelativeName(PyObject *self, PyObject *args)
32673208// inside a known folder.
32683209static PyObject *PySHCreateItemInKnownFolder (PyObject *self, PyObject *args)
32693210{
3270- // @comm This function is only available on Vista and later; a
3271- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3272- if (pfnSHCreateItemInKnownFolder == NULL )
3273- return PyCom_BuildPyException (E_NOTIMPL);
3274-
32753211 DWORD flags;
32763212 PyObject *obname;
32773213 IID riid = IID_IShellItem;
@@ -3302,10 +3238,6 @@ static PyObject *PySHCreateItemInKnownFolder(PyObject *self, PyObject *args)
33023238// ID.
33033239static PyObject *PySHCreateItemWithParent (PyObject *self, PyObject *args)
33043240{
3305- // @comm This function is only available on Vista and later; a
3306- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3307- if (pfnSHCreateItemWithParent == NULL )
3308- return PyCom_BuildPyException (E_NOTIMPL);
33093241 PyObject *ret = NULL ;
33103242 PyObject *obpidlparent, *obsfparent, *obpidl;
33113243 IID riid = IID_IShellItem;
@@ -3352,11 +3284,6 @@ static PyObject *PySHCreateItemWithParent(PyObject *self, PyObject *args)
33523284// @pymethod <o PyIDL>|shell|SHGetIDListFromObject|Retrieves the PIDL of an object.
33533285static PyObject *PySHGetIDListFromObject (PyObject *self, PyObject *args)
33543286{
3355- // @comm This function is only available on Vista and later; a
3356- // COM exception with E_NOTIMPL will be thrown if the function can't be located.
3357- if (pfnSHGetIDListFromObject == NULL )
3358- return PyCom_BuildPyException (E_NOTIMPL);
3359-
33603287 PyObject *ret = NULL ;
33613288 PyObject *ob;
33623289
0 commit comments