Hello everybody. In the upper filter driver of the disk device, after sending the IOCTL_STORAGE_GET_DEVICE_NUMBER request, I get the device type 07, the device number 1 and the partition number 0. Next, I want to read the MBR using the ZwOpenFile function, but I always get the status 0xc0000034(The object name is not found.). As an object name parameter I tried to pass: \\Device\\Harddisk1\\Partition0, \\??\\ , \\??\\PhysicalDrive1 , \\Device\\harddisk1\\DR1, \\??\\F: (The letter of my device).
Is it possible that the sector can not be read by the disk device driver? Or it is necessary to do it with the help of the driver of the partition?