[NTOSKRNL] Rewrite IoAssignDriveLetters to make NT5 compliant

The major change with this rewrite is the support for the mount
manager. Fstub will now assume that most of the devices are PnP
and that they are already registered to the mount manager.
It will thus ask the mount manager to assign the drive letter.
Fstub will keep assigning drive letters non mission critical devices
such as CDs, floppies and other removable devices.

See MountMgr:QueryPoints API test that will now return mount points :-).
This commit is contained in:
Pierre Schweitzer 2019-10-21 18:28:40 +02:00
parent b68104dd87
commit 5ab1cfc553
No known key found for this signature in database
GPG Key ID: 7545556C3D585B0B
3 changed files with 1235 additions and 794 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,5 +4,6 @@
#include <initguid.h>
#include <batclass.h>
#include <poclass.h>
#include <diskguid.h>
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View File

@ -33,6 +33,7 @@
#include <ntdef.h>
#include <ntifs.h>
#include <wdmguid.h>
#include <diskguid.h>
#include <arc/arc.h>
#include <mountmgr.h>
#undef NTHALAPI