Jump to content

Retrieving the altered Struct after a call


Oxin8
 Share

Recommended Posts

How do get the dllstruct(inside another) that was altered by a dll call? i don't know how to say it much better but the code will explain...(psuedocode)

$innerstruct = DllStructCreate("byte;long");data we want to retrieve
$mainstruct = DllStructCreate("long;ptr")
DllStructSetData($mainstruct, 2, DllStructGetPtr($innerstruct))
DllCall($dllname,"long",$function,"ptr",$mainstruct);alters $mainstruct and $innerstruct values

now how would i retrieve the "byte" part of $innerstruct?

Link to comment
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=10813

The _DllStructSubStruct function there is what i want but it doesn't work. The example doesn't even work and I'm sure it's do to changes in autoit since may. Is there a new way to do this or can someone change the UDF to work with the current beta?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...