mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
- Implement IoGetPagingIoPriority and fix its export
svn path=/trunk/; revision=36508
This commit is contained in:
parent
cb267e1fdf
commit
d2abe18c98
2 changed files with 27 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue