<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
It still feels <b>very early</b> to drop support for Windows XP. I
haven't used it properly in years, but I can't say the same about
the target user audience. I still test some builds against Windows
XP.<br>
<br>
It would be a shame to drop support for Windows XP over
SHGetKnownFolderPath(), when alternatives like SHGetFolderPath() and
even older SHGetSpecialFolderPath() still work in all existing NT
versions, including 2000, XP, 7, 8, 10. I totally support the use of
newer API when it is available, however it is not too difficult to
use an older API with dynamic bindings, especially if we are talking
about a single function.<br>
<br>
A proposal:<br>
1) Use windirs.GetWindowsSpecialDir in fpttf.pp, which already uses
a more backwards compatible SHGetFolderPath().<br>
2) Optionally, improve windirs.GetWindowsSpecialDir to use a newer
SHGetKnownFolderPath() when it is available.<br>
<br>
If this is suitable, I can produce a patch for both.<br>
<br>
Denis<br>
<br>
<br>
<div class="moz-cite-prefix">On 30/01/2018 21:40, Florian Klämpfl
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:02853939-c85b-822e-26c9-fe80645a1586@freepascal.org">
<pre wrap="">Am 29.01.2018 um 21:11 schrieb Russell Davies:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Just curious, does the use of SHGetKnownFolderPath() in trunk package winunits-base in fpttf.pp mean
the end of Windows XP support as this function is not available in XP's shell32.dll
</pre>
</blockquote>
<pre wrap="">
Probably yes, at least with the release of 3.2.0. After all, Win XP is almost for 4 years out of
support. But if somebody decides to stick with Win XP, he can stick also with FPC 3.0.x, it will not
stop working.
_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>