Device windowing support. Has the following values:
CAPS_DEV_WINDOWING_SUPPORT
If 1, this device supports
windowing. Other bits are reserved (0).
CAPS_ADDITIONAL_GRAPHICS
Additional graphics support. Has the following values:
CAPS_GRAPHICS_KERNING_SUPPORT
If 1, device supports
kerning.
CAPS_FONT_OUTLINE _ DEFAULT
If1
,devicehasadefaultoutlinefont .
CAPS _ FONT _ IMAGE _ DEFAULT
If1 ,devicehasadefaultimagefont
.
CAPS _ SCALED _ DEFAULT _ MARKERS
If1 ,defaultmarkersaretobescaledbythemarker
- boxattribute .
CAPS _ COLOR _ CURSOR _ SUPPORT
If1 ,devicesupportscoloredcursors
.
CAPS _ PALETTE _ MANAGER
If1 ,devicesupportspalettefunctions
.
CAPS _ COSMETIC _ WIDELINE _ SUPPORT
If1 ,devicesupportscosmeticthicklines
.
CAPS _ ENHANCED _ TEXT
If1 ,devicesupportsfull
- fontfiledescriptionandtextalignment .Otherbitsarereserved( 0 ) .
CAPS _ CLIP _ FILLS
If1 ,changesthebehaviorofthegraphicsenginetocallGrePolyScanlinewiththeCOM
_ PRECLIPflagset .Thelinesarepreclippedwhenfillingareas .Thisflagshouldonlybereturnedtothegraphicsengine
versionnumber0x202orlater( seeGreQueryEngineVersion
) .
CAPS _ PHYS _ COLORS
Maximumnumberofdistinctcolorsavailableonthedevice
.
CAPS _ COLOR _ INDEX
Maximumlogicalcolor
- tableindexsupportedforthisdevice .ForEGAandVGAdrivers ,thisvalueis63 .
CAPS
_ GRAPHICS _ CHAR _ WIDTH
Defaultgraphicscharacter
- boxwidthinpels .
CAPS _ GRAPHICS _ CHAR _ HEIGHT
Defaultgraphicscharacter
- boxheightinpels .
CAPS _ HORIZONTAL _ FONT _ RES
Effectivehorizontaldeviceresolutioninpelsperinch(
forselectingfonts ) .Forprinters ,thisistheactualdeviceresolution .Fordisplays
,itcandifferfromtheactualresolutionforreasonsoflegibility .
CAPS
_ VERTICAL _ FONT _ RES
Effectiveverticaldeviceresolutioninpelsperinch(
forselectingfonts ) .
CAPS _ DEVICE _ FONT _ SIM
Identifieswhichsimulationsarevalidondevicefonts
.Validflagsare :CAPS _ DEVICE _ FONT _ SIM _ BOLDCAPS _ DEVICE
_ FONT _ SIM _ ITALIC
CAPS_DEVICE_FONT_SIM_UNDERSCORE
CAPS_DEVICE_FONT_SIM_STRIKEOUT
CAPS_LINEWIDTH_THICK
Cosmetic
thickness of lines and arcs on this device when fxLineWidth is LINEWIDTH_THICK
(refer to the function "GpiSetLineWidth" in the Presentation Manager
Programming Reference). The units are in pels. A value of 0 is interpreted
as two pels.
Additional information is provided
in the device capabilities array for communication between the presentation
driver and the graphics engine. For example, the parameter CAPS_ADDITIONAL_GRAPHICS
has two extra flags and a CAPS_DEVICE_FONT_SIM field is provided.
The additional flags in CAPS_ADDITIONAL_GRAPHICS are used (in conjunction
with the CAPS_FONT_OUTLINE_DEFAULT and CAPS_FONT_IMAGE_DEFAULT flags) by
the presentation driver to indicate when the graphics engine manages the
transforms and mappings for the default fonts supplied by the driver. These
flags are:
CAPS_FONT_OUTLINE_MANAGE
Set by the presentation
driver to indicate that the graphics engine must manage the default outline
font
CAPS_FONT_IMAGE_MANAGE
Set
by the presentation driver to indicate that the graphics engine must manage
the default image font
Note: If the presentation
driver supplies the fonts but wants the graphics engine to manage them,
it must pass the font address to the graphics engine using GreQueryDevResource.
The CAPS_DEVICE_FONT_SIM field contains flags that the presentation driver
sets so that the graphics engine will handle simulations for the default
fonts supplied by the driver:
CAPS_DEV_FONT_SIM_BOLD
Indicates that the graphics
engine should simulate CDEF_BOLD for device fonts
CAPS_DEV_FONT_SIM_ITALIC
Indicates that the graphics engine should simulate
CDEF_ITALIC for device fonts
CAPS_DEV_FONT_SIM_UNDERSCORE
Indicates that the graphics engine should simulate
CDEF_UNDERSCORE for device fonts
CAPS_DEV_FONT_SIM_STRIKEOUT
Indicates that the graphics engine should simulate
CDEF_STRIKEOUT for device fonts.
Note: The
font attributes CDEF_xxx are identified by the cdef.fFlags field
in the "Character Attributes" bundle (see Character
Attributes). In the presentation driver, routines that write character
strings should check the cdef.fFlags field to determine whether the
call should be passed to the default handling routine in the graphics engine.
paOutData (PLONG) - input
Pointer
to an array where information is returned.
cOutData (LONG) - input
Number
of items of information to be returned at paOutData.
pInstance (PVOID) - input
Pointer
to instance data.
lFunction (ULONG) - input
High-order
WORD=flags; low-order WORD=NGreQueryDeviceCaps.
rc (BOOL) - returns
Return
Code.
On completion, the handling routine must return a BOOLEAN value to indicate
success or an error.
TRUE
FALSE
Possible
Errors Detected: When an error is detected, the handling routine must
call WinSetErrorInfo to post the condition. Error codes for conditions that
the handling routine is expected to check include:
Refer to the "Error Explanations"
section in the Presentation Manager Programming Reference for further
explanation.
[Back: GreQueryDeviceCaps Return Value - rc]
[Next: GreQueryDeviceCaps - Remarks]