IO_STATUS_BLOCKThe I/O status block in the IRP is set to indicate the final status of a given request before a driver calls
IRP结构体中的I/O状态结构是用来指示一个被提起的请求的最终状态,
IoCompleteRequestwith the IRP.
必须在你调用IoCompleteRequest函数之前设置IO_STATUS_BLOCK结构体中的成员
typedef struct _IO_STATUS_BLOCK
{
NTSTATUS Status;
ULONG Information;}
IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
其中
Status是请求被处理的状态,如果被成功的处理,则为STATUS_SUCCESS ,其他情况为STATUS_XXX
Information如果处理成功,Information表示处理的字节数,如果处理失败,此值为0。