change offset of an IntPtr

Joined
Dec 10, 2005
Messages
3
Reaction score
0
hi

i have a structure from unmanaged code that have two member
for a string value inside structure buffer (stringOffset, stringSize)
i have convert my structure to an IntPtr value with Marshal.StructureToPtr.

now , i want extract string value inside structure buffer , i must use
Marshal.PtrToString method but there is a problem.
how i can forward IntPtr value to string value offset ?
is there any way to change offset of an IntPtr value ?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top