J
Just Me
I have SendMessage declared with the last two parameters as ByVal IntPtr
I need to call it with an Integer value and a Byte array pointer.
The Integer is [in] while the Byte array is [out]
I could probably figure how to do the pointer using Marshal.AllocHGlobal ,
Marshal.StructureToPtr, ...
If that's the simplest way to do it. But is it?
Also, if the integer value was zero I'd use IntPtr.Zero, but it's not zero -
is there a way to generate a IntPtr with the value of a given Integer.
Thanks
I need to call it with an Integer value and a Byte array pointer.
The Integer is [in] while the Byte array is [out]
I could probably figure how to do the pointer using Marshal.AllocHGlobal ,
Marshal.StructureToPtr, ...
If that's the simplest way to do it. But is it?
Also, if the integer value was zero I'd use IntPtr.Zero, but it's not zero -
is there a way to generate a IntPtr with the value of a given Integer.
Thanks