[NTOSKRNL] Modify ObpCreateDeviceMap so that it can handle any process

It is now able to set the newly created device map to any
process and will default to current process if none is provided.
It also sets system device map if no process is specified.
It also deferences existing device map in the process if needed.
Finaly, it will make the directory object permanant.
This commit is contained in:
Pierre Schweitzer 2019-06-01 13:35:41 +02:00
parent d5b88ff0ae
commit 933dddeb07
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 83 additions and 10 deletions

View file

@ -399,9 +399,9 @@ ObReferenceFileObjectForWrite(
//
NTSTATUS
NTAPI
ObpCreateDeviceMap(
IN HANDLE DirectoryHandle
);
ObSetDeviceMap(
IN PEPROCESS Process,
IN HANDLE DirectoryHandle);
VOID
NTAPI