Jump to content
Excelsior Forums
Sign in to follow this  
dataxpresso

Problem with FindWindow

Recommended Posts

Hello i have a problem with the FindWindow function from user32

i used many signature but didn't find the good one

i thought it was

new xFunction("USER32","int FindWindow(CSTRING,CSTRING)")

i even used

new xFunction("USER32","int FindWindow(UNICODESTRING,UNICODESTRING)")

i am not good with window and msdn at all can someone show me the syntax.

the new xFunction("USER32","int BringWindowToTop(int)"); function can be created correctly btw.

thx.

dataxpresso

Share this post


Link to post
Share on other sites

ok i solved it myself

this is just because FindWindow is named FindWindowA in user32.dll.

i have now another problem it is with

new xFunction("USER32","int GetClassNameA(int,CSTRING*,int)");

i am unable to deref correctly the second argument it gives me correctly the int in return with a non zero value (16 in my example case) but i have a jvm excpetion when i try to deref the Pointer object for the 2nd argument.

any help appreciated.

dataxpresso

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×