Strange behaviour of IOCTL_DISK_PERFORMANCE

Hi,
I have an 32 bit application which uses the IOCTL_DISK_PERFORMANCE
DeviceIoControl to retrieve performance data from disk( works perfect).
When I’m trying to execute the same application on x64 Windows( Windows
server 2003, build 3790 ), DeviceIoControl returns false, error code is
0x1f ( ERROR_GEN_FAILURE ).
Handle of device looks OK, no visible problems. Disk performance
counters in PerfMon application working OK.

Any advice?

Lev Zlotin

Try a larger buffer alignment?

–PA


“Zlotin, Lev” wrote in message news:xxxxx@ntdev…
Hi,
I have an 32 bit application which uses the IOCTL_DISK_PERFORMANCE
DeviceIoControl to retrieve performance data from disk( works perfect).
When I’m trying to execute the same application on x64 Windows( Windows
server 2003, build 3790 ), DeviceIoControl returns false, error code is
0x1f ( ERROR_GEN_FAILURE ).
Handle of device looks OK, no visible problems. Disk performance
counters in PerfMon application working OK.

Any advice?

Lev Zlotin