Hi,
I have implemented the following function in my cpp code to retrieve information of the disks of a Windows system:-
DeviceIoControl ( hDevice, IOCTL_DISK_GET_DRIVE_LAYOUT, NULL, 0, buffer, (DWORD)dwBytes, (LPDWORD)&dwBytesReturned, (LPOVERLAPPED) NULL);
but it returns error code 1( ERROR_INVALID_FUNCTION) for handful of windows server but is working fine on a large number of servers.
Can anyone suggest the reason behind this error? Is it machine/registry related?
Thanks in advance.