Sign in to follow this  
Followers 0
Oxin8

Retrieving the altered Struct after a call

3 posts in this topic

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?

Share this post


Link to post
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?

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  
Followers 0