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