xCoder
May 7th, 2011, 02:39
Hello, I want to program software protection and can't find any suitable info about raw physical disk reading/writing in Win98 SE. I found something like this:
... but it works only for reading logical disks. I need writing to physical device. Can someone provide info or links? Sorry for bad english.
Code:
DeviceIoControl(hDev, VWIN32_DIOC_DOS_INT25, ®, sizeof(reg), ®, sizeof(reg), &cb, 0);
DeviceIoControl(hDev, VWIN32_DIOC_DOS_INT26, ®, sizeof(reg), ®, sizeof(reg), &cb, 0);
DeviceIoControl(hDev, VWIN32_DIOC_DOS_DRIVEINFO, ®, sizeof(reg), ®, sizeof(reg), &cb, 0);
... but it works only for reading logical disks. I need writing to physical device. Can someone provide info or links? Sorry for bad english.