예제 #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);
                }
        }
예제 #2
0
 public static extern int EndPaint(HWND hwnd, ref PAINTSTRUCT lpPaint);
예제 #3
0
파일: Win32.cs 프로젝트: wj-wong/csharp
 public static extern bool EndPaint(IntPtr hWnd, [In] ref PAINTSTRUCT lpPaint);
예제 #4
0
파일: Win32.cs 프로젝트: wj-wong/csharp
 public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);
예제 #5
0
 public static extern IntPtr EndPaint(IntPtr hWnd, ref PAINTSTRUCT ps);
예제 #6
0
 public static extern IntPtr BeginPaint(IntPtr hWnd, out PAINTSTRUCT ps);
예제 #7
0
파일: Win32.cs 프로젝트: cleverxy/csharp
 public static extern IntPtr BeginPaint(IntPtr hwnd, out PAINTSTRUCT lpPaint);
예제 #8
0
 public static unsafe extern BOOL EndPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);
예제 #9
0
 public static unsafe extern IntPtr BeginPaint(IntPtr hWnd, PAINTSTRUCT* lpPaint);