3 writes to _deviceHandle
ReachFramework (3)
PrintConfig\FallbackPTProvider.cs (3)
55if (!UnsafeNativeMethods.OpenPrinterW(deviceName, out this._deviceHandle, new HandleRef(this, IntPtr.Zero))) 354this._deviceHandle = null; 662_deviceHandle = null;
7 references to _deviceHandle
ReachFramework (7)
PrintConfig\FallbackPTProvider.cs (7)
352_deviceHandle?.Dispose(); 510result = UnsafeNativeMethods.DocumentPropertiesW(new HandleRef(this, IntPtr.Zero), this._deviceHandle, this._deviceName, outPtr, buffer, flags); 618UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, SafeMemoryHandle.Null, dwNeeded, ref dwNeeded); 624if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.Handle, dwNeeded, ref dwNeeded)) 641ObjectDisposedException.ThrowIf(_deviceHandle is null, typeof(PTProvider)); 659if (_deviceHandle != null) 661_deviceHandle.Dispose();