3 writes to _deviceHandle
ReachFramework (3)
PrintConfig\FallbackPTProvider.cs (3)
56if (false == UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 355this._deviceHandle = null; 663_deviceHandle = null;
7 references to _deviceHandle
ReachFramework (7)
PrintConfig\FallbackPTProvider.cs (7)
353_deviceHandle?.Dispose(); 511result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 619UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, SafeMemoryHandle.Null, dwNeeded, ref dwNeeded); 625if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded)) 642ObjectDisposedException.ThrowIf(_deviceHandle is null, typeof(PTProvider)); 660if (_deviceHandle != null) 662_deviceHandle.Dispose();