Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question About Custom Return Codes

0 views
Skip to first unread message

David Dillard

unread,
Feb 5, 1997, 3:00:00 AM2/5/97
to

We have a driver that implements several custom IOCtls. On certain errors we'd like to
return a custom status code which indicates what specific error occurred. When we try to
return a custom status (setting the 'customer' bit in the value) it gets mangled by
something inbetween the driver and the app (kernel or Win32 or something) so that even
though DeviceIoControl() fails GetLastError() returns some weird value that has no
apparent relation to the value returned by the driver.

Is there any way to return custom return codes from an IOCtl in a driver and have an
application able to see those values? (I know that we could just add a status field to
each IOCtl packet but I'd like to avoid that if possible).

-----------------------------------------------------------------------
David Dillard da...@mdi.com
Principal Software Engineer
Micro Design International, Inc. http://www.mdi.com

0 new messages