public SoundControlElementInfo(IntPtr ptr) { if (ptr == IntPtr.Zero) { SoundNativeMethods.SoundControlElementInfoMalloc(out handle); if (handle == IntPtr.Zero) { throw new OutOfMemoryException(); } } else { handle = ptr; } }
public SoundControlElementInfo(IntPtr ptr) { if (ptr == IntPtr.Zero) { SoundNativeMethods.SoundControlElementInfoMalloc(out handle); if (handle == IntPtr.Zero) { throw new OutOfMemoryException(); } } else { handle = ptr; } }