Determining That SHARE Is Loaded Under Microsoft WindowsLast reviewed: July 22, 1997Article ID: Q72744 |
3.00 3.10
WINDOWS
kbprg
The information in this article applies to:
SUMMARYTo determine whether the SHARE.EXE application is loaded, an application typically calls MS-DOS Interrupt 2Fh Function 1000h. However, this method always returns true in enhanced mode Microsoft Windows versions 3.0 and 3.1 even if the SHARE is not loaded. Windows returns true for Interrupt 2Fh Function 1000h to prevent SHARE from installing itself in an MS-DOS virtual machine (VM) under Windows. If SHARE installed a local copy in a VM, the system would become unstable and data corruption on the hard drive(s) might result.
MORE INFORMATIONTo determine under enhanced mode Windows whether SHARE is installed, call Interrupt 21h Function 5Ch to lock a region of a file. This function is available only when SHARE is installed, and unlike using the OpenFile function with sharing modes, the lock region function always fails with error 1 (invalid function) if SHARE is not loaded. Perform the following six steps to determine whether SHARE is loaded:
|
Additional reference words: 3.00 3.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |