GET_LENGTH_INFORMATION undefined.
-
Hi, I am trying to use DeviceIoControl() to get a drive length into the GET_LENGTH_INFORMATION structure. When I compile, I get an error stating "GET_LENGTH_INFORMATION: undeclared identifier" I have included 'WinIOCtl.h' as specified in the MSDN docs. I am also running XP. The code used is simply;
GET_LENGTH_INFORMATION len;
Does anyone know why I should be getting these errors?? Thanks -
Hi, I am trying to use DeviceIoControl() to get a drive length into the GET_LENGTH_INFORMATION structure. When I compile, I get an error stating "GET_LENGTH_INFORMATION: undeclared identifier" I have included 'WinIOCtl.h' as specified in the MSDN docs. I am also running XP. The code used is simply;
GET_LENGTH_INFORMATION len;
Does anyone know why I should be getting these errors?? ThanksMr Simple wrote:
I have included 'WinIOCtl.h' as specified in the MSDN docs.
But did you miss this in the
winioctl.h
file:#if(_WIN32_WINNT >= 0x500)
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, I am trying to use DeviceIoControl() to get a drive length into the GET_LENGTH_INFORMATION structure. When I compile, I get an error stating "GET_LENGTH_INFORMATION: undeclared identifier" I have included 'WinIOCtl.h' as specified in the MSDN docs. I am also running XP. The code used is simply;
GET_LENGTH_INFORMATION len;
Does anyone know why I should be getting these errors?? Thanks -