cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
karthik1231
Level 2

USER32.GetWindowText

Hi,

We are using Install Shiled 11.5.

We need to get the name of the Window that is currently open. So that we need to use the method "GetWindowText"

But we don't know how to define the method..

We did the folowing
//definition
prototype int USER32.GetWindowText(HWND,BYVAR STRING,int); -- Line1
//calling
GetWindowText(Window,outputstring,bufferlength); -- Line2

While compile it throws an error saying that "USER32.GetWindowText is conflict with the exisiting definition".

Please help me to compile this
Labels (1)
0 Kudos
(1) Reply
karthik1231
Level 2

Finally got the solution.

In Install Shield project, Build - >Settings, there is an option to not include the winapi. I removed that condition. So all winapi will be accessible from Install Script
0 Kudos