6.41 LceGetSystemAttribute
Retrieve information about the host system.
BOOL |
LceGetVariable |
(int |
iSession, |
|
|
int |
iAttrbiute, |
|
|
int far * |
iValue ) |
Parameters
iSession |
The session identifier as returned by LceGetSessionId. |
iAttribute |
The attribute to retrieve. Available attributes are listed in the Notes. |
iValue |
The value of the option. Refer to the Notes for the available values. |
Return Values
TRUE is returned if the session can retrieve the requested value.
FALSE is returned if an error occurs.
Notes
This function can only be executed after a session has been opened.
The following system attributes may be retrieved:
LCE_SYS_CHARSET_TYPE
Specifies the Host Type. Available values are LCE_HOST_EBCDIC and LCE_HOST_ASCII as defined in the LCOE.H header file.
LCE_SYS_OS_TYPE
Specifies the Operating System type. Available values are LCE_HOST_ISERIES, LCE_HOST_WINDOWS, LCE_HOST_UNIX as defined in the LCOE.H header file.