45 references to CommonHandles
System.Windows.Forms (45)
winforms\Managed\System\WinForms\Control.cs (2)
6568
System.Internal.HandleCollector.Add(handle, NativeMethods.
CommonHandles
.GDI);
19992
System.Internal.HandleCollector.Add(handle, NativeMethods.
CommonHandles
.GDI);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
331
return System.Internal.HandleCollector.Add(colorMask, NativeMethods.
CommonHandles
.GDI);;
winforms\Managed\System\WinForms\DataObject.cs (1)
1630
System.Internal.HandleCollector.Add(medium.unionmember, NativeMethods.
CommonHandles
.GDI);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1251
System.Internal.HandleCollector.Add(windowRegionHandle, NativeMethods.
CommonHandles
.GDI);
winforms\Managed\System\WinForms\NativeWindow.cs (2)
781
System.Internal.HandleCollector.Add(createResult, NativeMethods.
CommonHandles
.Window);
1156
System.Internal.HandleCollector.Remove(handle, NativeMethods.
CommonHandles
.Window);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3872
System.Internal.HandleCollector.Add(hFont, NativeMethods.
CommonHandles
.GDI);
winforms\Managed\System\WinForms\SafeNativeMethods.cs (14)
64
return System.Internal.HandleCollector.Add(IntCreateCompatibleBitmap(hDC, width, height), NativeMethods.
CommonHandles
.GDI);
165
System.Internal.HandleCollector.Remove((IntPtr)hObject, NativeMethods.
CommonHandles
.GDI);
179
return System.Internal.HandleCollector.Add(IntCreateSolidBrush(crColor), NativeMethods.
CommonHandles
.GDI);
350
return System.Internal.HandleCollector.Add(IntCreateHalftonePalette(hdc), NativeMethods.
CommonHandles
.GDI);
406
return System.Internal.HandleCollector.Add(IntCreateDIBSection(hdc, pbmi, iUsage, ppvBits, hSection, dwOffset), NativeMethods.
CommonHandles
.GDI);
415
return System.Internal.HandleCollector.Add(IntCreateBitmap(nWidth, nHeight, nPlanes, nBitsPerPixel, lpvBits), NativeMethods.
CommonHandles
.GDI);
424
return System.Internal.HandleCollector.Add(IntCreateBitmapShort(nWidth, nHeight, nPlanes, nBitsPerPixel, lpvBits), NativeMethods.
CommonHandles
.GDI);
433
return System.Internal.HandleCollector.Add(IntCreateBitmapByte(nWidth, nHeight, nPlanes, nBitsPerPixel, lpvBits), NativeMethods.
CommonHandles
.GDI);
441
return System.Internal.HandleCollector.Add(IntCreatePatternBrush(hbmp), NativeMethods.
CommonHandles
.GDI);
449
return System.Internal.HandleCollector.Add(IntCreateBrushIndirect(lb), NativeMethods.
CommonHandles
.GDI);
457
return System.Internal.HandleCollector.Add(IntCreatePen(nStyle, nWidth, crColor), NativeMethods.
CommonHandles
.GDI);
484
return System.Internal.HandleCollector.Add(IntCopyImage(hImage, uType, cxDesired, cyDesired, fuFlags), NativeMethods.
CommonHandles
.GDI);
487
return System.Internal.HandleCollector.Add(IntCopyImage(hImage, uType, cxDesired, cyDesired, fuFlags), NativeMethods.
CommonHandles
.Cursor);
567
return System.Internal.HandleCollector.Add(IntCreateRectRgn(x1, y1, x2, y2), NativeMethods.
CommonHandles
.GDI);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (23)
439
return System.Internal.HandleCollector.Add(IntCreateMenu(), NativeMethods.
CommonHandles
.Menu);
488
System.Internal.HandleCollector.Add(handleTarget, NativeMethods.
CommonHandles
.Kernel);
597
System.Internal.HandleCollector.Remove((IntPtr)handle, NativeMethods.
CommonHandles
.Kernel);
607
return System.Internal.HandleCollector.Add(IntCreateCompatibleDC(hDC), NativeMethods.
CommonHandles
.CompatibleHDC);
644
return System.Internal.HandleCollector.Add(IntMapViewOfFile(hFileMapping, dwDesiredAccess, dwFileOffsetHigh, dwFileOffsetLow, dwNumberOfBytesToMap), NativeMethods.
CommonHandles
.Kernel);
651
System.Internal.HandleCollector.Remove((IntPtr)pvBaseAddress, NativeMethods.
CommonHandles
.Kernel);
661
return System.Internal.HandleCollector.Add(IntGetDCEx(hWnd, hrgnClip, flags), NativeMethods.
CommonHandles
.HDC);
707
return System.Internal.HandleCollector.Add(IntCreateAcceleratorTable(pentries, cCount), NativeMethods.
CommonHandles
.Accelerator);
713
System.Internal.HandleCollector.Remove((IntPtr)hAccel, NativeMethods.
CommonHandles
.Accelerator);
748
System.Internal.HandleCollector.Remove((IntPtr)hrgn, NativeMethods.
CommonHandles
.GDI);
1276
return System.Internal.HandleCollector.Add(IntBeginPaint(hWnd, ref lpPaint), NativeMethods.
CommonHandles
.HDC);
1283
System.Internal.HandleCollector.Remove(lpPaint.hdc, NativeMethods.
CommonHandles
.HDC);
1293
return System.Internal.HandleCollector.Add(IntGetDC(hWnd), NativeMethods.
CommonHandles
.HDC);
1302
return System.Internal.HandleCollector.Add(IntGetWindowDC(hWnd), NativeMethods.
CommonHandles
.HDC);
1309
System.Internal.HandleCollector.Remove((IntPtr)hDC, NativeMethods.
CommonHandles
.HDC);
1320
return System.Internal.HandleCollector.Add(IntCreateDC(lpszDriver, null, null, NativeMethods.NullHandleRef), NativeMethods.
CommonHandles
.HDC);
1325
return System.Internal.HandleCollector.Add(IntCreateDC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData), NativeMethods.
CommonHandles
.HDC);
1442
return System.Internal.HandleCollector.Add(IntCreatePopupMenu(), NativeMethods.
CommonHandles
.Menu);
1453
System.Internal.HandleCollector.Remove((IntPtr)hMenu, NativeMethods.
CommonHandles
.Menu);
1508
return System.Internal.HandleCollector.Add(IntCreateIC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData), NativeMethods.
CommonHandles
.HDC);
1535
System.Internal.HandleCollector.Remove((IntPtr)hCurs, NativeMethods.
CommonHandles
.Cursor);
1547
System.Internal.HandleCollector.Remove((IntPtr)hDC, NativeMethods.
CommonHandles
.HDC);
1553
System.Internal.HandleCollector.Remove((IntPtr)hDC, NativeMethods.
CommonHandles
.CompatibleHDC);