mirror of
https://github.com/reactos/reactos.git
synced 2025-06-23 04:40:16 +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
|
IO_PAGING_PRIORITY
|
||||||
NTAPI
|
FASTCALL
|
||||||
IoGetPagingIoPriority(IN PIRP Irp)
|
IoGetPagingIoPriority(IN PIRP Irp)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
IO_PAGING_PRIORITY Priority;
|
||||||
|
ULONG Flags;
|
||||||
|
|
||||||
/* Lie and say this isn't a paging IRP -- FIXME! */
|
/* Get the flags */
|
||||||
return IoPagingPriorityInvalid;
|
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 IoGetFileObjectGenericMapping()
|
||||||
@ stdcall IoGetInitialStack()
|
@ stdcall IoGetInitialStack()
|
||||||
@ stdcall IoGetLowerDeviceObject(ptr)
|
@ stdcall IoGetLowerDeviceObject(ptr)
|
||||||
@ stdcall IoGetPagingIoPriority(ptr)
|
@ fastcall IoGetPagingIoPriority(ptr)
|
||||||
@ stdcall IoGetRelatedDeviceObject(ptr)
|
@ stdcall IoGetRelatedDeviceObject(ptr)
|
||||||
@ stdcall IoGetRequestorProcess(ptr)
|
@ stdcall IoGetRequestorProcess(ptr)
|
||||||
@ stdcall IoGetRequestorProcessId(ptr)
|
@ stdcall IoGetRequestorProcessId(ptr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue