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