Skip to content

Commit 735e0c6

Browse files
authored
Drop support for Vista, set Windows 7 as the minimal Windows version. (#2487)
1 parent 53fcd1f commit 735e0c6

15 files changed

Lines changed: 6 additions & 88 deletions

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ https://mhammond.github.io/pywin32_installers.html .
1313

1414
Coming in build 310, as yet unreleased
1515
--------------------------------------
16+
* Drop support for Vista, set Windows 7 as the minimal Windows version. (#, @Avasam)
17+
* Restores many IIDs in `win32com(ext).shell.shell`. See #2486 for details.
1618

1719
Build 309, released 2025/03/09
1820
------------------------------

com/win32comext/shell/src/PyIApplicationDestinations.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "shell_pch.h"
55

6-
// Requires Windows 7 SDK to build
7-
#if WINVER >= 0x0601
8-
96
#include "PyIApplicationDestinations.h"
107

118
// @doc - This file contains autoduck documentation
@@ -90,7 +87,6 @@ PyObject *PyIApplicationDestinations::RemoveAllDestinations(PyObject *self, PyOb
9087
}
9188

9289
// @object PyIApplicationDestinations|Allows an application to removed items from its jump lists
93-
// @comm Available on Windows 7 and later
9490
static struct PyMethodDef PyIApplicationDestinations_methods[] = {
9591
{"SetAppID", PyIApplicationDestinations::SetAppID,
9692
1}, // @pymeth SetAppID|Specifies the application whose jump list is to be accessed
@@ -103,4 +99,3 @@ static struct PyMethodDef PyIApplicationDestinations_methods[] = {
10399
PyComTypeObject PyIApplicationDestinations::type("PyIApplicationDestinations", &PyIUnknown::type,
104100
sizeof(PyIApplicationDestinations), PyIApplicationDestinations_methods,
105101
GET_PYCOM_CTOR(PyIApplicationDestinations));
106-
#endif // WINVER

com/win32comext/shell/src/PyIApplicationDestinations.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Requires Windows 7 SDK to build
2-
#if WINVER >= 0x0601
31
// This file declares the IApplicationDestinations Interface for Python.
42
// Generated by makegw.py
53
// ---------------------------------------------------
@@ -21,5 +19,3 @@ class PyIApplicationDestinations : public PyIUnknown {
2119
PyIApplicationDestinations(IUnknown *pdisp);
2220
~PyIApplicationDestinations();
2321
};
24-
25-
#endif // WINVER

com/win32comext/shell/src/PyIApplicationDocumentLists.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "shell_pch.h"
55

6-
// Requires Windows 7 SDK to build
7-
#if WINVER >= 0x0601
8-
96
#include "PyIApplicationDocumentLists.h"
107

118
// @doc - This file contains autoduck documentation
@@ -72,7 +69,6 @@ PyObject *PyIApplicationDocumentLists::GetList(PyObject *self, PyObject *args)
7269
}
7370

7471
// @object PyIApplicationDocumentLists|Interface used to retrieve the jump lists for an application
75-
// @comm Available on Windows 7 and later
7672
static struct PyMethodDef PyIApplicationDocumentLists_methods[] = {
7773
{"SetAppID", PyIApplicationDocumentLists::SetAppID,
7874
1}, // @pymeth SetAppID|Specifies the application whose jump list is to be accessed
@@ -83,5 +79,3 @@ PyComTypeObject PyIApplicationDocumentLists::type("PyIApplicationDocumentLists",
8379
sizeof(PyIApplicationDocumentLists),
8480
PyIApplicationDocumentLists_methods,
8581
GET_PYCOM_CTOR(PyIApplicationDocumentLists));
86-
87-
#endif // WINVER

com/win32comext/shell/src/PyIApplicationDocumentLists.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Requires Windows 7 SDK to build
2-
#if WINVER >= 0x0601
3-
41
// This file declares the IApplicationDocumentLists Interface for Python.
52
// Generated by makegw.py
63
// ---------------------------------------------------
@@ -21,5 +18,3 @@ class PyIApplicationDocumentLists : public PyIUnknown {
2118
PyIApplicationDocumentLists(IUnknown *pdisp);
2219
~PyIApplicationDocumentLists();
2320
};
24-
25-
#endif // WINVER

com/win32comext/shell/src/PyICustomDestinationList.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "shell_pch.h"
55

6-
// Requires Windows 7 SDK to build
7-
#if WINVER >= 0x0601
8-
96
#include "PyICustomDestinationList.h"
107

118
// @doc - This file contains autoduck documentation
@@ -228,7 +225,6 @@ PyObject *PyICustomDestinationList::AbortList(PyObject *self, PyObject *args)
228225
}
229226

230227
// @object PyICustomDestinationList|Interface used to customize an application's jump list
231-
// @comm Requires Windows 7 or later
232228
static struct PyMethodDef PyICustomDestinationList_methods[] = {
233229
{"SetAppID", PyICustomDestinationList::SetAppID,
234230
1}, // @pymeth SetAppID|Specifies the taskbar identifier for the jump list
@@ -251,5 +247,3 @@ static struct PyMethodDef PyICustomDestinationList_methods[] = {
251247
PyComTypeObject PyICustomDestinationList::type("PyICustomDestinationList", &PyIUnknown::type,
252248
sizeof(PyICustomDestinationList), PyICustomDestinationList_methods,
253249
GET_PYCOM_CTOR(PyICustomDestinationList));
254-
255-
#endif // WINVER

com/win32comext/shell/src/PyICustomDestinationList.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
//
55
// Interface Declaration
66

7-
// Requires Windows 7 SDK to build
8-
#if WINVER >= 0x0601
9-
107
class PyICustomDestinationList : public PyIUnknown {
118
public:
129
MAKE_PYCOM_CTOR(PyICustomDestinationList);
@@ -28,5 +25,3 @@ class PyICustomDestinationList : public PyIUnknown {
2825
PyICustomDestinationList(IUnknown *pdisp);
2926
~PyICustomDestinationList();
3027
};
31-
32-
#endif // WINVER

com/win32comext/shell/src/PyIObjectArray.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "shell_pch.h"
55

6-
// Requires Windows 7 SDK to build
7-
#if WINVER >= 0x0601
8-
96
#include "PyIObjectArray.h"
107

118
// @doc - This file contains autoduck documentation
@@ -67,5 +64,3 @@ static struct PyMethodDef PyIObjectArray_methods[] = {
6764

6865
PyComTypeObject PyIObjectArray::type("PyIObjectArray", &PyIUnknown::type, sizeof(PyIObjectArray),
6966
PyIObjectArray_methods, GET_PYCOM_CTOR(PyIObjectArray));
70-
71-
#endif // WINVER

com/win32comext/shell/src/PyIObjectArray.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
//
55
// Interface Declaration
66

7-
// Requires Windows 7 SDK to build
8-
#if WINVER >= 0x0601
9-
107
class PyIObjectArray : public PyIUnknown {
118
public:
129
MAKE_PYCOM_CTOR(PyIObjectArray);
@@ -21,5 +18,3 @@ class PyIObjectArray : public PyIUnknown {
2118
PyIObjectArray(IUnknown *pdisp);
2219
~PyIObjectArray();
2320
};
24-
25-
#endif // WINVER

com/win32comext/shell/src/PyIObjectCollection.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
#include "shell_pch.h"
55

6-
// Requires Windows 7 SDK to build
7-
#if WINVER >= 0x0601
8-
96
#include "PyIObjectArray.h"
107
#include "PyIObjectCollection.h"
118

@@ -124,5 +121,3 @@ PyComTypeObject PyIObjectCollection::type("PyIObjectCollection",
124121
&PyIObjectArray::type, // @base PyIObjectCollection|PyIObjectArray
125122
sizeof(PyIObjectCollection), PyIObjectCollection_methods,
126123
GET_PYCOM_CTOR(PyIObjectCollection));
127-
128-
#endif // WINVER

0 commit comments

Comments
 (0)