Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Trouble with System plugin (http://forums.winamp.com/showthread.php?t=349856)

Marshallx7 9th October 2012 16:40

Trouble with System plugin
 
I'm trying to get information about the styles used by the installer window. Executing the following in a page show event:
code:

!define GWL_STYLE -16
System::Call "user32:GetWindowLong(i, i) i ($HWNDPARENT, ${GWL_STYLE}) .s"
Pop $R0
MessageBox MB_OK `"$R0"`



The message box always shows ""

What am I doing wrong?

EDIT:
Apologies, have been looking at this for hours, finally gave up and posted, then noticed that there is only one colon in the method call. D'oh!
code:

!define GWL_STYLE -16
System::Call "user32::GetWindowLong(i, i) i ($HWNDPARENT, ${GWL_STYLE}) .s"
Pop $R0
MessageBox MB_OK `"$R0"`


^^this works fine.


All times are GMT. The time now is 17:41.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.