2 writes to Handle
ReachFramework (2)
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (2)
33
this.
Handle
= SafeMemoryHandle.Create(length);
53
this.
Handle
= null;
24 references to Handle
ReachFramework (24)
MS\Internal\Printing\Configuration\HGlobalBuffer.cs (1)
52
SafeHandle handle = this.
Handle
;
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (16)
427
numOutputs = UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, buffer.
Handle
, this._devMode);
447
buffer.
Handle
.DangerousAddRef(ref shouldRelease);
450
IntPtr baseAddr = buffer.
Handle
.DangerousGetHandle();
462
buffer.
Handle
.DangerousRelease();
473
buffer.
Handle
.DangerousAddRef(ref shouldRelease);
476
IntPtr baseAddr = buffer.
Handle
.DangerousGetHandle();
488
buffer.
Handle
.DangerousRelease();
499
buffer.
Handle
.DangerousAddRef(ref shouldRelease);
502
IntPtr baseAddr = buffer.
Handle
.DangerousGetHandle();
516
buffer.
Handle
.DangerousRelease();
527
buffer.
Handle
.DangerousAddRef(ref shouldRelease);
530
IntPtr baseAddr = buffer.
Handle
.DangerousGetHandle();
544
buffer.
Handle
.DangerousRelease();
555
buffer.
Handle
.DangerousAddRef(ref shouldRelease);
558
IntPtr baseAddr = buffer.
Handle
.DangerousGetHandle();
582
buffer.
Handle
.DangerousRelease();
PrintConfig\FallbackPTProvider.cs (7)
632
if (UnsafeNativeMethods.GetPrinterW(this._deviceHandle, dwLevel, pPrinterBuffer.
Handle
, dwNeeded, ref dwNeeded))
753
pPrinterBuffer.
Handle
.DangerousAddRef(ref shouldRelease);
756
IntPtr ptr = pPrinterBuffer.
Handle
.DangerousGetHandle();
790
pPrinterBuffer.
Handle
.DangerousRelease();
822
pPrinterBuffer.
Handle
.DangerousAddRef(ref shouldRelease);
825
IntPtr pDevMode = Marshal.ReadIntPtr(pPrinterBuffer.
Handle
.DangerousGetHandle());
835
pPrinterBuffer.
Handle
.DangerousRelease();