private static IntPtr ADL_Main_Memory_Alloc_(int size) { IntPtr result = Marshal.AllocCoTaskMem(size); return result; }