_CreateRectRgn() private method

private _CreateRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : IntPtr
nLeftRect int
nTopRect int
nRightRect int
nBottomRect int
return System.IntPtr
Example #1
0
        public static IntPtr CreateRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect)
        {
            IntPtr intPtr = NativeMethods._CreateRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect);

            if (IntPtr.Zero == intPtr)
            {
                throw new Win32Exception();
            }
            return(intPtr);
        }