Re: DeviceIoctl fail
- From: Valter Minute <v_a_l_t_e_r.m_i_n_u_t_e@xxxxxxxxxxxxx>
- Date: Fri, 21 Dec 2007 08:40:14 -0800
nihar <niharrou@xxxxxxxxx> wrote in news:6d851d0e-adf0-4ea7-abd4-
46408356d08a@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
hello all,
In the deviceioctl function i am passing the the first 4
parameters as the handle,then the ioctl command ,Long pointer to a
buffer ,the inbuffer size and other 4 parameters as NULL.but the
function fails.Please suggest any solution
There's no way to know why the functions fails for sure.
Check it's return code with GetLastError.
If it returns ERROR_INVALID_HANDLE che to understand why your handle
is invalid.
If it returns ERROR_INVALID_PARAMETER or another error code, this is
specific of the IOCTL code you are using and the driver that receives
your request.
Check the docs or the source code of the driver, if it's available or
try to describe your issue in a more detailed way here to have more
specific answers.
--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)
.
- References:
- DeviceIoctl fail
- From: nihar
- DeviceIoctl fail
- Prev by Date: DeviceIoctl fail
- Next by Date: Re: DeviceIoctl fail
- Previous by thread: DeviceIoctl fail
- Next by thread: Re: DeviceIoctl fail
- Index(es):
Relevant Pages
|