Prev Previous Post   Next Post Next
Old 31st July 2005, 19:35   #1
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Unhappy System plugin help

I'm trying to call the 'IsOS' function of shlwapi.dll.

MSDN link:
http://msdn.microsoft.com/library/de...thers/IsOS.asp

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):
code:

StrCpy $1 8 ; to detect win2k or higher
System::call "shlwapi.dll::IsOS(i r1)i .r2"


I've tried other values for $1 too, but always $2 returns 'error'.

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.

Last edited by Comperio; 31st July 2005 at 22:23.
Comperio is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump