komalo Posted June 17, 2008 Share Posted June 17, 2008 when i try to make a dll call this messege appears Error: AutoIt has detected the stack has become corrupt here is the code dllCall("user32.dll", "int", "SendMessage", "long", 0xffff, "long", 0x1a, "long", 0x2a) [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 17, 2008 Share Posted June 17, 2008 That means that one or more of the parameter types you are using is incorrect. In this case, I believe that the parameter types should match LRESULT SendMessage( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam ); and in the very least, those values are not "long". Link to comment Share on other sites More sharing options...
komalo Posted June 17, 2008 Author Share Posted June 17, 2008 well i took it from here http://www.autoitscript.com/forum/lofivers...php?t15343.htmland in last replay someone said it works Perfectlyall i am trying to do is rebuilding icon cache [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 17, 2008 Share Posted June 17, 2008 (edited) I have no idea how that would work. The first parameter is a window handle, the second is an unsigned integer, and I forget what wparam and lparam are. I think they are DWORD* but I can't recall. Those aren't long. Wait, part of your problem is that you don't even have enough parameters. I just noticed you only have three parameters. SendMessage needs 4. First, why don't you try _SendMessage from the UDFs instead of your own DllCall, so the types are correct. You also need to figure out which parameter is missing. Edited June 17, 2008 by Richard Robertson Link to comment Share on other sites More sharing options...
komalo Posted June 17, 2008 Author Share Posted June 17, 2008 and finally worked with _SendMessage , thank you man [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 17, 2008 Share Posted June 17, 2008 Glad to help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now