24 references to DeviceCapability
ReachFramework (24)
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (1)
265
public static extern uint DeviceCapabilitiesW(string pDevice, string pPort,
DeviceCapability
fwCapabilities, SafeMemoryHandle pOutput, SafeMemoryHandle pDevMode);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (23)
110
uint minExtent = GetIntCapability(
DeviceCapability
.DC_MINEXTENT);
122
uint maxExtent = GetIntCapability(
DeviceCapability
.DC_MAXEXTENT);
132
get { return GetBoolCapability(
DeviceCapability
.DC_COLLATE); }
140
get { return GetBoolCapability(
DeviceCapability
.DC_COLORDEVICE); }
156
get { return (int)GetIntCapability(
DeviceCapability
.DC_COPIES); }
164
get { return GetBoolCapability(
DeviceCapability
.DC_DUPLEX); }
188
get { return GetArrayCapability<short>(
DeviceCapability
.DC_BINS, ReadWORDArray); }
199
return GetArrayCapability<string>(
DeviceCapability
.DC_BINNAMES, ReadUnicodeStringArray, 24 * 2);
205
get { return GetArrayCapability<uint>(
DeviceCapability
.DC_NUP, ReadDWORDArray); }
213
get { return GetArrayCapability<short>(
DeviceCapability
.DC_PAPERS, ReadWORDArray); }
224
return GetArrayCapability<string>(
DeviceCapability
.DC_PAPERNAMES, ReadUnicodeStringArray, 64 * 2);
233
get { return GetArrayCapability<DC_PAPER_SIZE>(
DeviceCapability
.DC_PAPERSIZE, ReadDC_PAPER_SIZEArray); }
241
get { return GetArrayCapability<uint>(
DeviceCapability
.DC_MEDIATYPES, ReadDWORDArray); }
252
return GetArrayCapability<string>(
DeviceCapability
.DC_MEDIATYPENAMES, ReadUnicodeStringArray, 64 * 2);
261
get { return (int)GetIntCapability(
DeviceCapability
.DC_ORIENTATION); }
269
get { return GetArrayCapability<DC_RESOLUTION>(
DeviceCapability
.DC_ENUMRESOLUTIONS, ReadDC_RESOLUTIONArray); }
285
get { return GetBoolCapability(
DeviceCapability
.DC_TRUETYPE); }
293
return (DevModeFields)GetIntCapability(
DeviceCapability
.DC_FIELDS);
361
private bool GetBoolCapability(
DeviceCapability
capability)
372
this._dmFields = (DevModeFields)GetIntCapability(
DeviceCapability
.DC_FIELDS);
384
private uint GetIntCapability(
DeviceCapability
capability)
396
private T[] GetArrayCapability<T>(
DeviceCapability
capability, ReadArray<T> readItem) where T : struct
415
private T[] GetArrayCapability<T>(
DeviceCapability
capability, ReadArray<T> readArray, int itemByteSize)