The information in this article applies to:
SUMMARYSHARE.EXE provides file sharing and locking to MS-DOS versions 3.0 and later. To determine whether SHARE.EXE is currently loaded, you can make a call to the MS-DOS interrupt, &H2F (2F hex). You should load the AX register with &H1000 before using the CALL INTERRUPT statement. After the call, the AX register will return with the value &H00FF (ff hex) if SHARE.EXE is loaded. MORE INFORMATIONThe following program demonstrates how to call interrupt &H2F to detect if SHARE.EXE is loaded. It makes the interrupt call and then PRINTs what the three separate types of returns can mean. Code ExampleTo try this example in VBDOS.EXE:
VBDOS.EXE /LTo use this program in the QB.EXE or QBX.EXE environment, use the /L environment switch to load the default Quick library, QB.QLB (or QBX.QLB for Basic PDS for MS-DOS 7.0 or 7.1). To make an executable program from this code, you must link with the library, QB.LIB (or Q BX.LIB for Basic PDS for MS-DOS 7.0 or 7.1).
Additional query words: VBmsdos QuickBas BasicCom 1.00 4.00 4.00b 4.50 6.00 6.00b 7.00 7.10 3.00
Keywords : |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |