Gdi32GetClipRgn(SafeHandle, IntPtr) Method
Retrieves a handle identifying the current application-defined clipping region for the specified device context.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll", SetLastError = true)]
public static int GetClipRgn(
SafeHandle hdc,
ref IntPtr refRegion
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function GetClipRgn (
hdc As SafeHandle,
ByRef refRegion As IntPtr
) As Integer
Dim hdc As SafeHandle
Dim refRegion As IntPtr
Dim returnValue As Integer
returnValue = Gdi32.GetClipRgn(hdc,
refRegion)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static int GetClipRgn(
SafeHandle^ hdc,
IntPtr% refRegion
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member GetClipRgn :
hdc : SafeHandle *
refRegion : IntPtr byref -> int
No code example is currently available or this language may not be supported.
- hdc SafeHandle
-
A handle to the device context (DC).
- refRegion IntPtr
-
A handle to an existing region before the function is called.
After the function returns, this parameter is a handle to a copy of the current clipping region.
Int32
If the function succeeds and there is no clipping region for the given device context, the return value is
0.
If the function succeeds and there is a clipping region for the given device context, the return value is
1.
If an error occurs, the return value is
-1.