I have a C++ struct below:
struct CUSTOM_DATA { int id; u_short port; unsigned long ip; } custom_data;
How can i convert it to C#
[StructLayout(LayoutKind.Sequential)] struct CUSTOM_DATA { int id; ushort port; uint ip; }; CUSTOM_DATA cData ; // use me
edit: thx reed