public static void index_setClientEntity(ref CXIdxEntityInfo @param0, CXIdxClientEntity @param1)
        {
            var temp = new _CXIdxEntityInfo
            {
                kind          = param0.kind,
                templateKind  = param0.templateKind,
                lang          = param0.lang,
                cursor        = param0.cursor,
                attributes    = param0.attributes,
                numAttributes = param0.numAttributes
            };

            try
            {
                temp.name = Marshal.StringToHGlobalAnsi(param0.name);
                temp.USR  = Marshal.StringToHGlobalAnsi(param0.USR);
                index_setClientEntity(ref temp, param1);
            }
            finally
            {
                if (temp.name != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(temp.name);
                }

                if (temp.USR != IntPtr.Zero)
                {
                    Marshal.FreeHGlobal(temp.USR);
                }
            }
        }
Exemple #2
0
 public static extern void index_setClientEntity(out CXIdxEntityInfo @param0, CXIdxClientEntity @param1);
 private static extern void index_setClientEntity(ref _CXIdxEntityInfo @param0, CXIdxClientEntity @param1);