public static IntPtr AllocHGlobal(IntPtr cb)
        {
            IntPtr pNewMem = Win32Native.LocalAlloc_NoSafeHandle(LMEM_FIXED, cb);

            if (pNewMem == Win32Native.NULL)
            {
                throw new OutOfMemoryException();
            }
            return(pNewMem);
        }