2 writes to Handle
ReachFramework (2)
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (2)
30this.Handle = SafeMemoryHandle.Create(length); 50this.Handle = null;
24 references to Handle
ReachFramework (24)
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (1)
49SafeHandle handle = this.Handle;
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (16)
424numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, buffer.Handle, this._devMode); 444buffer.Handle.DangerousAddRef(ref shouldRelease); 447IntPtr baseAddr = buffer.Handle.DangerousGetHandle(); 459buffer.Handle.DangerousRelease(); 470buffer.Handle.DangerousAddRef(ref shouldRelease); 473IntPtr baseAddr = buffer.Handle.DangerousGetHandle(); 485buffer.Handle.DangerousRelease(); 496buffer.Handle.DangerousAddRef(ref shouldRelease); 499IntPtr baseAddr = buffer.Handle.DangerousGetHandle(); 513buffer.Handle.DangerousRelease(); 524buffer.Handle.DangerousAddRef(ref shouldRelease); 527IntPtr baseAddr = buffer.Handle.DangerousGetHandle(); 541buffer.Handle.DangerousRelease(); 552buffer.Handle.DangerousAddRef(ref shouldRelease); 555IntPtr baseAddr = buffer.Handle.DangerousGetHandle(); 579buffer.Handle.DangerousRelease();
PrintConfig\FallbackPTProvider.cs (7)
628if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded)) 749pPrinterBuffer.Handle.DangerousAddRef(ref shouldRelease); 752IntPtr ptr = pPrinterBuffer.Handle.DangerousGetHandle(); 786pPrinterBuffer.Handle.DangerousRelease(); 818pPrinterBuffer.Handle.DangerousAddRef(ref shouldRelease); 821IntPtr pDevMode = Marshal.ReadIntPtr(pPrinterBuffer.Handle.DangerousGetHandle()); 831pPrinterBuffer.Handle.DangerousRelease();