Hello,
An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status STATUS_ACCESS_DENIED.
More exactly:
418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called "Create paging file" in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpagef!
11&pver=2195
Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline ntfsd
archive, google... But could find any documentation of valid status for
NtCreatePagingFile failure.
I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).
Can someone points me to the documentation of NtCreatePagingFile?
Best regards,
David Burg
David Burg
Software Development,
InCD and Low Level Drivers Project Leader