Discussion:
marshalling an array of structs of blittable types
(too old to reply)
nickdu
2009-04-27 19:05:02 UTC
Permalink
I'm trying to call RegisterTraceGuids() from C#. One of the parameters of
this method is an in/out array of structures. Do I need to make this an
IntPtr or can I define the structure in C# and make the array an array of
this structure? By the way, another parameter is the number of array items.
--
Thanks,
Nick

***@community.nospam
remove "nospam" change community. to msn.com
Jialiang Ge [MSFT]
2009-04-28 08:57:12 UTC
Permalink
Hello Nick

You need to declare the parameter as IntPtr for this In/Out array with
variable length.

Regards,
Jialiang Ge (***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
***@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

Loading...