"Corrected WindowSetupDesc Implementation (CPP Side)"

// C++
 
#pragma pack(push, 1)
struct WindowSetupDesc {
    INTEROP_STRING Title;
    uint32_t Width;
    uint32_t Height;
    INTEROP_BOOL HideBorders;
    INTEROP_BOOL AllowResizing;
};
#pragma pack(pop)


Code snippet taken from "P/Invoke Tips".