public unsafe override bool Equals(object obj) { if (!(obj is PAINTSTRUCT)) { return(false); fixed(PAINTSTRUCT *address = &this) { PAINTSTRUCT other = (PAINTSTRUCT)obj; IntPtr size = new IntPtr(GetSize()); IntPtr equalBytes = NativeMethods.RtlCompareMemory(address, &other, size); return(size == equalBytes); } }
public static extern int EndPaint(HWND hwnd, ref PAINTSTRUCT lpPaint);
public static extern bool EndPaint(IntPtr hWnd, [In] ref PAINTSTRUCT lpPaint);
public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);
public static extern IntPtr EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps);
public static extern IntPtr BeginPaint(IntPtr hWnd, out PAINTSTRUCT ps);
public static unsafe extern BOOL EndPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);
public static unsafe extern IntPtr BeginPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);