- Implement IoGetPagingIoPriority and fix its export

svn path=/trunk/; revision=36508
This commit is contained in:
Stefan Ginsberg 2008-09-25 14:29:11 +00:00
parent cb267e1fdf
commit d2abe18c98
2 changed files with 27 additions and 6 deletions

View file

@ -1535,16 +1535,37 @@ IoFreeIrp(IN PIRP Irp)
}
/*
* @unimplemented
* @implemented
*/
IO_PAGING_PRIORITY
NTAPI
FASTCALL
IoGetPagingIoPriority(IN PIRP Irp)
{
UNIMPLEMENTED;
IO_PAGING_PRIORITY Priority;
ULONG Flags;
/* Lie and say this isn't a paging IRP -- FIXME! */
return IoPagingPriorityInvalid;
/* Get the flags */
Flags = Irp->Flags;
/* Check what priority it has */
if (Flags & 0x8000) // FIXME: Undocumented flag
{
/* High priority */
Priority = IoPagingPriorityHigh;
}
else if (Flags & IRP_PAGING_IO)
{
/* Normal priority */
Priority = IoPagingPriorityNormal;
}
else
{
/* Invalid -- not a paging IRP */
Priority = IoPagingPriorityInvalid;
}
/* Return the priority */
return Priority;
}
/*

View file

@ -415,7 +415,7 @@
@ stdcall IoGetFileObjectGenericMapping()
@ stdcall IoGetInitialStack()
@ stdcall IoGetLowerDeviceObject(ptr)
@ stdcall IoGetPagingIoPriority(ptr)
@ fastcall IoGetPagingIoPriority(ptr)
@ stdcall IoGetRelatedDeviceObject(ptr)
@ stdcall IoGetRequestorProcess(ptr)
@ stdcall IoGetRequestorProcessId(ptr)