24 references to HandleCollector
WindowsBase (24)
Shared\MS\Win32\NativeMethodsCLR.cs (10)
6594public static readonly int Accelerator = HandleCollector.RegisterType("Accelerator", 80, 50); 6599public static readonly int Cursor = HandleCollector.RegisterType("Cursor", 20, 500); 6604public static readonly int EMF = HandleCollector.RegisterType("EnhancedMetaFile", 20, 500); 6609public static readonly int Find = HandleCollector.RegisterType("Find", 0, 1000); 6614public static readonly int GDI = HandleCollector.RegisterType("GDI", 50, 500); 6620public static readonly int HDC = HandleCollector.RegisterType("HDC", 100, 2); // wait for 2 dc's before collecting 6625public static readonly int Icon = HandleCollector.RegisterType("Icon", 20, 500); 6630public static readonly int Kernel = HandleCollector.RegisterType("Kernel", 0, 1000); 6635public static readonly int Menu = HandleCollector.RegisterType("Menu", 30, 1000); 6640public static readonly int Window = HandleCollector.RegisterType("Window", 5, 1000);
Shared\MS\Win32\NativeMethodsOther.cs (2)
265HandleCollector.Add(collectorId); 276HandleCollector.Remove(_collectorId);
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (12)
258HandleCollector.Remove((IntPtr)hObject, NativeMethods.CommonHandles.GDI); 272HandleCollector.Remove((IntPtr)hObject, NativeMethods.CommonHandles.GDI); 595HandleCollector.Remove((IntPtr)handle, NativeMethods.CommonHandles.Kernel); 643return HandleCollector.Add(h, NativeMethods.CommonHandles.HDC); 671HandleCollector.Remove((IntPtr)pvBaseAddress, NativeMethods.CommonHandles.Kernel); 1610return HandleCollector.Add(IntBeginPaint(hWnd, ref lpPaint), NativeMethods.CommonHandles.HDC); 1626HandleCollector.Remove(lpPaint.hdc, NativeMethods.CommonHandles.HDC); 1652return HandleCollector.Add(hDc, NativeMethods.CommonHandles.HDC); 1669HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC); 1900HandleCollector.Remove((IntPtr)handle, NativeMethods.CommonHandles.Icon); 1954HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC); 1975HandleCollector.Remove((IntPtr)hDC, NativeMethods.CommonHandles.HDC);