Here is the sample piece of code using StructLayout Attribute :

Code:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
    public struct ParserMacroInfoTree
    {
        public ParserMacroInfo Element;
        public IntPtr next;
        //public IntPtr Right;
    }