First, you have to show your code. The description as it stands is
meaningless.
Data alignment probably has nothing to do with what you saw, but the key
things you have to show are
- The DeviceIoControl call itself
- The declarations of all variables used in it
- The values of all variables used in it
Then the question can be answered. The only possible answer, with this
description, is "one of the parameters is not vallid, fix the problem".
Without seeing the code, declarations, and values (and if possible, how the
values were derived) the question is largely meaningless noise.
Note that the *driver* may impose additional limitations on the values of
parameters; for example, the driver may insist on an even number of bytes in
a buffer, or a buffer that is greater than some minimum size, or something
else that it is trying to validate, and fails with STATUS_INVALID_PARAMETER,
but there are a number of common errors that people make in coding, so until
we have eliminated these, it is hard to offer more information or
conjecture.
joe
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jack sa
Sent: Sunday, January 11, 2009 8:23 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] DeviceIoControl ,error 87!
Dear friends
I want to use DeviceIoControl function in a c++ windows application that is
compiled in Borland Studio Development 2006 .The driver is compiled in
WINDDK.
DeviceIOControl function returns false with error number 87, invalid
parameter.
I guess the error is caused by invalid project setting such as data
alignment &...
Please tell me which setting I have to change to overcome my problem or how
I can find the reason of the error.
Thanks in advance
Shabnam
--- NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: OSR Seminars – OSR To unsubscribe, visit the
List Server section of OSR Online at
ListServer/Forum
This message has been scanned for viruses and
dangerous content by http:</http:> MailScanner, and is
believed to be clean.