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?
The struct isn’t a problem, it will marshal correctly as-is.
Of course, it will be up to you to convert the double to a matching DateTime value. How it is encoded is unguessable from your question.