Jump to content

Recommended Posts

Posted

Hello,

I call a function in a DLL with DllCall without problem, but this function return a pointer to a string.

How I can get get/read this string when I know her pointer.

Thank you for your help

xonic

Posted

Create a char - Structure from a pointer, and get the value

$strString = DllStructCreate ( "char[128]" , $yourpointer)

$myString = DllStructGetData ($strString, 1)

but normaly use only "str" or "wstr" instead of "ptr" to get the Data from the API, because every String needs a pointer, and AutoIt now that.

VoSs2o0o

AutoItMacroGenerator on my Homepage (Link 2)

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
  • Recently Browsing   0 members

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