Use ZwDeviceIoControl in user space to get the NTSTATUS, if you use
DeviceIoControl the value is translated into a Win32 error code you can
get from GetLastError if the DeviceIoControl returns zero.
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org]
> Posted At: Friday, May 07, 2010 2:27 PM
> Posted To: ntdev
> Conversation: Ntstatus in DeviceIoControl.
> Subject: Ntstatus in DeviceIoControl.
> I am sending an IOCTL to my driver from a user mode program using
> DeviceIoControl. In the driver I return various NTSTATUS codes in
> My question is how do I get the returned NTSTATUS value in the user
> __________ Information from ESET Smart Security, version of virus
> database 5095 (20100507) __________
> The message was checked by ESET Smart Security.