dos12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DosQSysInfo (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSMISC
 
USHORT DosQSysInfo(index, pbSysInfoBuf, cbSysInfoBuf)
USHORT index;          /* index of value to look up                       */
PBYTE pbSysInfoBuf;    /* pointer to buffer receiving information         */
USHORT cbSysInfoBuf;   /* number of bytes in buffer receiving information */
 
The DosQSysInfo function retrieves system-format information, such as
maximum path length, that is constant for a particular release of MS OS/2.
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
index         Specifies the index of the information to retrieve. Currently,
              the only available index is Q_MAX_PATH_LENGTH, which returns
              the maximum path length (including the trailing null
              character).
 
pbSysInfoBuf  Points to the buffer that receives the system information.
              When the value of the index is Q_MAX_PATH_LENGTH, the
              DosQSysInfo function puts the maximum path length into the
              first two bytes of the buffer.
 
cbSysInfoBuf  Specifies the length (in bytes) of the buffer to receive the
              system information.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be one of the following:
 
     ERROR_BUFFER_OVERFLOW
     ERROR_INVALID_PARAMETER
 
See Also
 
DosChDir, DosGetVersion