Code: Select all
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684894(v=vs.85).aspx
Code: Select all
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684894(v=vs.85).aspx
Since PureBasic supports all the way back to Win 95, these won't be added.MSDN wrote:Minimum supported client: Windows XP [desktop apps only]
Code: Select all
; Pseudo-code; not a working example!
If OpenLibrary(0,"psapi.dll") And GetFunction(0,"EmptyWorkingSet")
result=CallFunction(0,"EmptyWorkingSet",arg1$,arg2$)
CloseLibrary(0)
EndIf
Just as a small side note: If I recall correctly, support for Win95 has been dropped with PB5.10.PB wrote:Since PureBasic supports all the way back to Win 95 [...]
In my opinion anything older than Windows XP should be dropped, including the DirectX 7 subsystem. There is less than 0.01% of people who use Windows older than XP worldwide. If PureBasic is going to progress and become a popular language, it will eventually need to drop older versions of Windows anyways. Windows 95, Windows 98, Windows ME, and Windows 2000 all should be dropped from support. That alone would free up a lot of code, and take a load off the development team. I know its there and they haven't had any issues with it, but that's because no one uses it. Current support could be left in, but why waste the resources if it's not going to be used. Especially when older versions of PureBasic will always support older versions of Windows. It would be a right move by Fred in taking the PureBasic language forward. The more Windows XP to Windows 8 support there is, the more useful and popular the language will become. Or just leave it as it is and add in the PSAPI functions, then add a little note to the documentation "only supported on Windows XP and later". That is peaceful compromise as you seem to be bothered by PureBasic improving.PB wrote:Since PureBasic supports all the way back to Win 95, these won't be added.MSDN wrote:Minimum supported client: Windows XP [desktop apps only]
Fred has stated in the past that only APIs made for all Windows get included.
That said, you CAN always call them manually yourself, assuming the relevant
DLLs (or needed files) are installed on the client machine. It's as easy as this:
Code: Select all
; Pseudo-code; not a working example! If OpenLibrary(0,"psapi.dll") And GetFunction(0,"EmptyWorkingSet") result=CallFunction(0,"EmptyWorkingSet",arg1$,arg2$) CloseLibrary(0) EndIf
Blankname wrote:In my opinion anything older than Windows XP should be dropped, including the DirectX 7 subsystem. [...]
I guess DirectX7 too:c4s wrote:Just as a small side note: If I recall correctly, support for Win95 has been dropped with PB5.10.
PB 5.10 Changelog wrote:- Removed: DirectX7 and NT4 subsystem on Windows
Sorry, I confused NT4 with Win95.PB wrote:> support for Win95 has been dropped with PB5.10
Where does it say that?
You can provide the newest import libraries, even with Win8 functions. As long as you don't use thesec4s wrote:Anyway, it's obvious that support for such an old system should be dropped very soon in favor of updated API support.