protected override bool ReleaseHandle()
 {
     return(UnsafeNativeMethods.ClosePrinter(base.handle));
 }
 /// <summary>
 /// Gets a device capability represented as an integer
 /// </summary>
 /// <param name="capability">Capability to retrieve</param>
 /// <returns>value of capability specified in capability argument</returns>
 private uint GetIntCapability(DeviceCapability capability)
 {
     return(UnsafeNativeMethods.DeviceCapabilitiesW(this._deviceName, this._portName, capability, SafeMemoryHandle.Null, this._devMode));
 }