mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOSKRNL] Stub support for querying DOS name when parsing FO name
This commit is contained in:
parent
a1401a7577
commit
abfddca8bb
3 changed files with 34 additions and 1 deletions
|
@ -1217,11 +1217,23 @@ IopGetSetSecurityObject(
|
|||
IN OUT PGENERIC_MAPPING GenericMapping
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IopQueryName(
|
||||
IN PVOID ObjectBody,
|
||||
IN BOOLEAN HasName,
|
||||
OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
|
||||
IN ULONG Length,
|
||||
OUT PULONG ReturnLength,
|
||||
IN KPROCESSOR_MODE PreviousMode
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IopQueryNameInternal(
|
||||
IN PVOID ObjectBody,
|
||||
IN BOOLEAN HasName,
|
||||
IN BOOLEAN QueryDosName,
|
||||
OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
|
||||
IN ULONG Length,
|
||||
OUT PULONG ReturnLength,
|
||||
|
|
|
@ -1867,10 +1867,29 @@ IopGetSetSecurityObject(IN PVOID ObjectBody,
|
|||
return Status;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IopQueryName(IN PVOID ObjectBody,
|
||||
IN BOOLEAN HasName,
|
||||
OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
|
||||
IN ULONG Length,
|
||||
OUT PULONG ReturnLength,
|
||||
IN KPROCESSOR_MODE PreviousMode)
|
||||
{
|
||||
return IopQueryNameInternal(ObjectBody,
|
||||
HasName,
|
||||
FALSE,
|
||||
ObjectNameInfo,
|
||||
Length,
|
||||
ReturnLength,
|
||||
PreviousMode);
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IopQueryNameInternal(IN PVOID ObjectBody,
|
||||
IN BOOLEAN HasName,
|
||||
IN BOOLEAN QueryDosName,
|
||||
OUT POBJECT_NAME_INFORMATION ObjectNameInfo,
|
||||
IN ULONG Length,
|
||||
OUT PULONG ReturnLength,
|
||||
|
@ -1893,6 +1912,8 @@ IopQueryNameInternal(IN PVOID ObjectBody,
|
|||
return STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
|
||||
if (QueryDosName) return STATUS_NOT_IMPLEMENTED;
|
||||
|
||||
/* Allocate Buffer */
|
||||
LocalInfo = ExAllocatePoolWithTag(PagedPool, Length, TAG_IO);
|
||||
if (!LocalInfo) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
|
|
@ -317,7 +317,7 @@ IopCreateObjectTypes(VOID)
|
|||
ObjectTypeInitializer.CloseProcedure = IopCloseFile;
|
||||
ObjectTypeInitializer.DeleteProcedure = IopDeleteFile;
|
||||
ObjectTypeInitializer.SecurityProcedure = IopGetSetSecurityObject;
|
||||
ObjectTypeInitializer.QueryNameProcedure = IopQueryNameInternal;
|
||||
ObjectTypeInitializer.QueryNameProcedure = IopQueryName;
|
||||
ObjectTypeInitializer.ParseProcedure = IopParseFile;
|
||||
ObjectTypeInitializer.UseDefaultObject = FALSE;
|
||||
if (!NT_SUCCESS(ObCreateObjectType(&Name,
|
||||
|
|
Loading…
Reference in a new issue