HOWTO: Opening Volumes Under Windows 95 |
Q125712
Windows 95 does not support opening disk drives or disk partitions with CreateFile(), as Windows NT does. Windows 95 also does not support the DeviceIoControl() IOCTL APIs, as Windows NT does. Instead, low-level disk access in Windows 95 can be achieved through DeviceIoControl() calls to the VWIN32 VxD.
Windows NT supports obtaining a handle to a disk drive or disk partition
by using CreateFile() and specifying the name of the drive or partition
as the filename (e.g. "\\.\PHYSICALDRIVE0" or "\\.\C:"). This handle can
then be used in the DeviceIoControl() Win32 API.
Windows 95 differs in the following ways:
For information on using DeviceIoControl() in Windows 95 and the IOCTL
functions supported by the VWIN32 VxD, please see the help file "Windows 95
Guide to Programming". Go to "Using Windows 95 features" and select "Using
Device I/O Control."
For information on using CreateFile() to obtain disk drive or disk
partition handles under Windows NT, see the description for CreateFile()
in the Microsoft Windows Programmer's Reference, Volume 3.
For information on Windows 95 extensions to the MS-DOS interrupts, please
see the help file "Windows 95 Guide to Programming." Go to "Using Microsoft
MS-DOS Extensions" and select "Exclusive Volume Locking", then "About
Exclusive Volume Locking", then "Exclusive Use Lock".
For a complete list of IOCTLs, see the description of the DeviceIoControl()
function in the Microsoft Windows Programmer's Reference, Volume 3.
Additional query words: 4.00
Keywords : kbAPI kbFileIO kbKernBase kbOSWin95 kbDSupport kbGrpDSKernBase
Issue type : kbhowto
Technology : kbAudDeveloper kbWin32sSearch kbWin32API
|
Last Reviewed: December 16, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |