Can someone explain the following exception to the argument: I don't like the structure class . This is the reason for the following line of code in my program:
Marshal.PtrToStructure(m.LParam, dbh);
given that dbh is of type:
[StructLayout(LayoutKind.Sequential)] public struct Device_Broadcast_Header { public int dbch_size; public int dbch_devicetype; public int dbch_reserved; }
thanks
source share