Microsoft KB Archive/67975

INF: Determining Location of Boot Drive in OS/2 Version 1.21 PSS ID Number: Q67975 Article last modified on 09-10-1991 PSS database name: O_Os2SDK

1.21

OS/2

Summary:

There is a sample program in the Software/Data Library named GETINFO that demonstrates how to determine the boot drive using the DosGetInfoSeg function.

GETINFO can be found in the Software/Data Library by searching on the word GETINFO, the Q number of this article, or S12861. GETINFO was archived using the PKware file-compression utility.

More Information:

It is possible to determine the boot drive by using the API call DosGetInfoSeg to get the global info segment. The “bootdrive” field of the GINFOSEG structure holds the boot drive. A value of 1 means the boot drive was drive A, a value of 2 indicates that the boot drive was drive B, and so on.

Copyright Microsoft Corporation 1991.