public static bool MagSetWindowFilterList(IntPtr hwnd, MagnifierFilterMode filterMode, IntPtr[] pHWND) { int arraySize = Marshal.SizeOf(typeof(IntPtr)) * pHWND.Length; IntPtr ptrDest = Marshal.AllocHGlobal(arraySize); Marshal.Copy(pHWND, 0, ptrDest, pHWND.Length); return(MagSetWindowFilterList(hwnd, filterMode, pHWND.Length, ptrDest)); }
public static extern bool MagSetWindowFilterList(IntPtr hwnd, MagnifierFilterMode pdwFilterMode, int count, IntPtr pHWND);
public static extern int MagGetWindowFilterList(IntPtr hwnd, ref MagnifierFilterMode pdwFilterMode, int count, IntPtr pHWND);