ID Number: Q39138
1.10
OS/2
Summary:
The following article describes how the virtual device number is
calculated and where this information is stored.
More Information:
Upon execution of the stored procedure SP_HELPDEVICE, one of the
fields returned is a virtual device number (V_DEVNO). This number is
the virtual device number that was entered when the disk device was
created (using DISK INIT).
However, if you examine all of the system tables, there appears to be
no table that holds a virtual device number. The number is stored in
the LOW column in the SYSDEVICES table in the MASTER database. The
virtual device number can be calculated using the following formula:
V_DEVNO = LOW / 16777216