using System; using System.Runtime.InteropServices; namespace sharpallegro5 { public partial class AllegroApi { //[StructLayout(LayoutKind.Explicit)] public struct ALLEGRO_CONFIG_ENTRY { [MarshalAs(UnmanagedType.I1)] public bool is_comment; public IntPtr key; /* comment if is_comment is true */ public IntPtr value; public IntPtr next; }; public struct ALLEGRO_CONFIG_SECTION { public IntPtr name; public IntPtr head; public IntPtr last; public IntPtr tree; public IntPtr next; }; //public struct ALLEGRO_CONFIG //{ // public IntPtr head; // public IntPtr last; // public IntPtr tree; //}; } }