Re: DeviceIoControl w/Win95
if you are after the total disk space and available space then use GetDiskFreeSpaceEx
Gary Kirkham
Re: DeviceIoControl w/Win95
Thanks, but I need the capabilities of the drive, not the disk. It's a bios type call I'm looking for.
One size never fits all.
Re: DeviceIoControl w/Win95
use the dos service int 21h,
that can call in win95 through vwin32.dll
similar like that:hDevice = CreateFile("\\\\.\\vwin32", 0 , 0, NULL, OPEN_EXISTING,
FILE_FLAG_DELETE_ON_CLOSE, NULL);
if(INVALID_HANDLE_VALUE==hDevice) return;
reg.reg_EAX = 0x440D;
reg.reg_ECX = 0x0848;// the value you want
reg.reg_EBX = Driver;
reg.reg_EDX = (LONG)&Lock;
DeviceIoControl(hDevice, VWIN32_DIOC_DOS_IOCTL, ®, sizeof(reg),
®, sizeof(reg), &cb, 0);
CloseHandle(hDevice);
Re: DeviceIoControl w/Win95
Great! That's it.
None of my (old) books on MS-DOS have this. Could you let me know where you got this?
Thanks again,
Fred
One size never fits all.