Stor port driver and Pagefile.sys

64 Views Asked by At

Can the storport driver know if the Read/Write command request which has come to it, is it because of a Paging out request from the physical RAM or Paging in request to the RAM?

1

There are 1 best solutions below

0
On

Found out a way to find if the request is from Paging I/O or not. The API is StorPortGetRequestInfo() and in PSTOR_REQUEST_INFO you will get to know what kind of request it is.

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/content/storport/nf-storport-storportgetrequestinfo