Description This command is used to retrieve the capabilities of the text terminal unit.
Input Param None.
Output Param LPWFSTTUCAPS lpCaps;
typedef struct _wfs_ttu_caps
{
WORD wClass;
WORD fwType;
LPWFSTTURESOLUTION * lppResolutions;
WORD wNumOfLEDs;
WORD fwKeys;
BOOL bKeyLock;
BOOL bDisplayLight;
BOOL bCursor;
BOOL bForms;
LPSTR lpszExtra;
} WFSTTUCAPS, * LPWFSTTUCAPS;
wClass
Specifies the logical service class, value is:
WFS_SERVICE_CLASS_TTU
fwType
Specifies the type of the text terminal unit as one of the following flags:
Value Meaning
WFS_TTU_FIXED The text terminal unit is a fixed device.
WFS_TTU_REMOVABLE The text terminal unit is a removable device.
lppResolutions
Pointer to a NULL terminated array of pointers WFSTTURESOLUTION structures. Specifies the resolutions supported by the physical display device. (For a definition of WFSTTURESOLUTION see command WFS_CMD_TTU_SET_RESOLUTION).
wNumOfLEDs
Specifies the number of LEDs available in this text terminal unit.
fwKeys
Specifies which types of keys the key pad of the text terminal unit supports as a combination of the following flags:
Value Meaning
WFS_TTU_KEYNUMERIC The text terminal unit has keys for numeric values.
WFS_TTU_KEYHEXADECIMAL The text terminal unit has keys for hexadecimal values.
WFS_TTU_KEYALPHANUMERIC The text terminal unit has keys for alphanumeric values.
bKeyLock
Specifies whether the text terminal unit has a key lock switch. The value can be either FALSE (not available) or TRUE (available).
bDisplayLight
Specifies whether the text terminal unit has a display light. The value can be either FALSE (not available) or TRUE (available).
bCursor
Specifies whether the text terminal unit display supports a cursor. The value can be either FALSE (not available) or TRUE (available).
bForms
Specifies whether the text terminal unit service supports forms oriented input and output. The value can be either FALSE (not available) or TRUE (available).
lpszExtra
Specifies a list of vendor-specific, or any other extended, information. The information is returned as a series of "key=value" strings so that it is easily extensible by service providers. Each string will be null-terminated, with the final string terminating with two null characters.
Error Codes There are no additional error codes generated by this command.
Comments Applications which require or expect specific information to be present in the lpszExtra parameter may not be device or vendor-independent.