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