c# pinvoke marshall struct

Posted by Wouter Roux on Stack Overflow See other posts from Stack Overflow or by Wouter Roux
Published on 2010-04-30T18:03:44Z Indexed on 2010/04/30 18:07 UTC
Read the original article Hit count: 970

Filed under:
|
|

Hi,

I have an unmanaged struct I'd like to marshal to c# that looks basically like this:

struct DateTimeStruct{
   double datetimestamp;
};   

struct MyStruct{
   char firstname[40];
   char lastname[40];
   DateTimeStruct bday;
   unsigned integer bool1;
   int val1;
};

What is the the correct c# declaration?

© Stack Overflow or respective owner

Related posts about c#

Related posts about pinvoke