## Virtual Device Driver Reference for OS/2

[prev][next][parent][TOC]

### VDHQuerySysValue - Parameters

VDMHandle (HVDM) Index of the system variable handle of the DOS session to query. A value of 0 (zero) indicates the current DOS session.

Index (ULONG) VDHQuerySysValue index values (as defined in VDMM.INC) and descriptions:

    Global Values        Ordinal  Type   Units         Range

    _____________        _______  ____   _____         _____

    VDHGSV_DAY              0     ULONG  days          1 < = x < = 31

    VDHGSV_MONTH            1     ULONG  months        1 < = x < = 12

    VDHGSV_YEAR             2     ULONG  years         1980 < = x < = MAXULONG

    VDHGSV_DAYOFWEEK        3     ULONG  days          0 < = x < = 6

    VDHGSV_HOUR             4     ULONG  hours         0 < = x < = 24

    VDHGSV_MINUTE           5     ULONG  minutes       0 < = x < = 60

    VDHGSV_SECOND           6     ULONG  seconds       0 < = x < = 60

    VDHGSV_HUNDREDTH        7     ULONG  1/100S        0 < = x < = 100

    VDHGSV_SECONDS1970      8     ULONG  seconds       0 < = x < = MAXULONG

    VDHGSV_TIMEZONE         9     ULONG  minutes       0 < = x < = MAXULONG

    VDHGSV_MSECSBOOT        10    ULONG  milliseconds  0 < = x < = MAXULONG

    VDHGSV_TIMERINTERVAL    11    ULONG  milliseconds  0 < = x < = 1000

    VDHGSV_DYNVARIATION     12    BOOL                 TRUE(nonzero)/FALSE(0)

    VDHGSV_MAXWAIT          13    ULONG  seconds       0 < = x < = MAXULONG

    VDHGSV_MINTIMESLICE     14    ULONG  milliseconds  0 < = x < = MAXULONG

    VDHGSV_MAXTIMESLICE     15    ULONG  milliseconds  0 < = x < = MAXULONG

    VDHGSV_YIELD            16    BOOL                 TRUE(nonzero)/FALSE(0)

    VDHGSV_TCYIELD          17    BOOL                 TRUE(nonzero)/FALSE(0)

    VDHGSV_VERMAJOR         18    ULONG                0 < = x < = MAXULONG

    VDHGSV_VERMINOR         19    ULONG                0 < = x < = MAXULONG

    VDHGSV_VERREVISION      20    CHAR                 0 < = x < = 255

    Global Values        Ordinal  Type   Units         Range

    _____________        _______  ____   _____         _____

    VDHGSV_MACHINETYPE      21    ULONG                MACHINE_TYPE_

    VDHGSV_BLACKHOLEADDR    22    PVOID  bytes         0 < = x < = MAXULONG

    VDHGSV_BLACKHOLESIZE    23    ULONG  bytes         0 < = x < = MAXULONG

    VDHGSV_FGNDSESSIONID    24    ULONG                0 < = x < = MAXSESSIONS

    VDHGSV_ARPLADDR         29    ULONG

    VDHGSV_MACHINEINFO      30    ULONG                Pointer to System

                                                       Configuration table

    VDHGSV_PPOSREGS         31    ULONG                Pointer to POS Regs

                                                       structure

    VDHGSV_PICMASK          32    ULONG                Original PIC mask values

    Local Values         Ordinal  Type   Units         Range

    ____________         _______  ____   _____         _____

    VDHLSV_HVDM           4096    HVDM

    VDHLSV_PID            4097    PID

    VDHLSV_PCRF           4098    PCFR

    VDHLSV_SESSIONID      4099    ULONG                N < = x < MAXSESSIONS

    VDHLSV_FOREGROUND     4100    BOOL                 TRUE(nonzero)/FALSE(0)

    VDHLSV_RMSIZE         4101    ULONG  KB            0 < x < = 640

    VDHLSV_CODEPAGEID     4102    ULONG                See DosGetCP

    VDHLSV_PRIORITYCLASS  4103    ULONG                See VDHSetPriority

    VDHLSV_PRIORITYLEVEL  4104    ULONG                See VDHSetPriority

    VDHLSV_VPICBASE       4105    UCHAR[4]

rc (ULONG) - returns

Success If the function is successful, it returns the value of the system variable. If the value is 0 and VDHGetError returns 0, then 0 is the correct value.

Failure If VDMHandle or Index is invalid, a system halt occurs.