// ntifs.h
LOGICAL FsRtlIsPagingFile(
[in] PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The FsRtlIsPagingFile routine determines whether a given file is a paging file.
FileObject [in]Pointer to a file object for the file.
FsRtlIsPagingFile returns TRUE if the file represented by FileObject is a paging file, otherwise FALSE.
File system filter drivers call FsRtlIsPagingFile to determine whether a given file object represents a paging file.
Note If FsRtlIsPagingFile is called in the create completion ("post-create") path, it returns FALSE, even if the file is a paging file. However, it works properly on Windows Vista and later.
FsRtlPostPagingFileStackOverflow
FsRtlSupportsPerStreamContexts