MSDN link:
Unfortunately, when I use Dependency Walker on Shlwapi.dll, I don't see the IsOS function on the list of functions. (each time I try to call it using the system plugin, I get an error returned.)
I belive my syntax is correct (see sample below):
I've tried other values for $1 too, but always $2 returns 'error'.
StrCpy $1 8 ; to detect win2k or higher
System::call "shlwapi.dll::IsOS(i r1)i .r2"
My current version of shlwapi.dll on Win2k is 6.0.2800.1612.
Ultimately, I'm trying to determine if an installation is being run on a terminal server or not and this was the only function I've found so far that should work the same on any flavor of Windows.
Any comments/suggestions are welcome.