Beispiel #1
0
        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);
                }
        }
Beispiel #2
0
 public static extern int EndPaint(HWND hwnd, ref PAINTSTRUCT lpPaint);
Beispiel #3
0
 public static extern bool EndPaint(IntPtr hWnd, [In] ref PAINTSTRUCT lpPaint);
Beispiel #4
0
 public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);
Beispiel #5
0
 public static extern IntPtr EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps);
Beispiel #6
0
 public static extern IntPtr BeginPaint(IntPtr hWnd, out PAINTSTRUCT ps);
Beispiel #7
0
 public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);
Beispiel #8
0
 public static unsafe extern BOOL EndPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);
Beispiel #9
0
 public static unsafe extern IntPtr BeginPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);