24 references to DeviceCapability
ReachFramework (24)
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (1)
260public static extern uint DeviceCapabilitiesW(string pDevice, string pPort, DeviceCapability fwCapabilities, SafeMemoryHandle pOutput, SafeMemoryHandle pDevMode);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (23)
107uint minExtent = GetIntCapability(DeviceCapability.DC_MINEXTENT); 119uint maxExtent = GetIntCapability(DeviceCapability.DC_MAXEXTENT); 129get { return GetBoolCapability(DeviceCapability.DC_COLLATE); } 137get { return GetBoolCapability(DeviceCapability.DC_COLORDEVICE); } 153get { return (int)GetIntCapability(DeviceCapability.DC_COPIES); } 161get { return GetBoolCapability(DeviceCapability.DC_DUPLEX); } 185get { return GetArrayCapability<short>(DeviceCapability.DC_BINS, ReadWORDArray); } 196return GetArrayCapability<string>(DeviceCapability.DC_BINNAMES, ReadUnicodeStringArray, 24 * 2); 202get { return GetArrayCapability<uint>(DeviceCapability.DC_NUP, ReadDWORDArray); } 210get { return GetArrayCapability<short>(DeviceCapability.DC_PAPERS, ReadWORDArray); } 221return GetArrayCapability<string>(DeviceCapability.DC_PAPERNAMES, ReadUnicodeStringArray, 64 * 2); 230get { return GetArrayCapability<DC_PAPER_SIZE>(DeviceCapability.DC_PAPERSIZE, ReadDC_PAPER_SIZEArray); } 238get { return GetArrayCapability<uint>(DeviceCapability.DC_MEDIATYPES, ReadDWORDArray); } 249return GetArrayCapability<string>(DeviceCapability.DC_MEDIATYPENAMES, ReadUnicodeStringArray, 64 * 2); 258get { return (int)GetIntCapability(DeviceCapability.DC_ORIENTATION); } 266get { return GetArrayCapability<DC_RESOLUTION>(DeviceCapability.DC_ENUMRESOLUTIONS, ReadDC_RESOLUTIONArray); } 282get { return GetBoolCapability(DeviceCapability.DC_TRUETYPE); } 290return (DevModeFields)GetIntCapability(DeviceCapability.DC_FIELDS); 358private bool GetBoolCapability(DeviceCapability capability) 369this._dmFields = (DevModeFields)GetIntCapability(DeviceCapability.DC_FIELDS); 381private uint GetIntCapability(DeviceCapability capability) 393private T[] GetArrayCapability<T>(DeviceCapability capability, ReadArray<T> readItem) where T : struct 412private T[] GetArrayCapability<T>(DeviceCapability capability, ReadArray<T> readArray, int itemByteSize)