PUNICODE_STRING RegistryPath
);
-NTSTATUS
-DfsDriverEntry(
- PDRIVER_OBJECT DriverObject,
- PUNICODE_STRING RegistryPath
-);
-
VOID
MupInitializeData(
VOID
#if defined(ALLOC_PRAGMA)
#pragma alloc_text(INIT, DriverEntry)
-#pragma alloc_text(INIT, DfsDriverEntry)
#pragma alloc_text(INIT, MupInitializeData)
#pragma alloc_text(INIT, MupInitializeVcb)
#endif
KeyName.MaximumLength = sizeof(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Mup");
/* Simply query registry to know whether we have to disable DFS.
- * Unless explicitely stated in registry, we will try to enable DFS.
+ * Unless explicitly stated in registry, we will try to enable DFS.
*/
InitializeObjectAttributes(&ObjectAttributes,
&KeyName,
return Status;
}
-NTSTATUS
-NTAPI
-DfsVolumePassThrough(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- return STATUS_NOT_IMPLEMENTED;
-}
-
NTSTATUS
NTAPI
MupForwardIoRequest(PDEVICE_OBJECT DeviceObject,
return Status;
}
-NTSTATUS
-DfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- return STATUS_NOT_IMPLEMENTED;
-}
-
NTSTATUS
NTAPI
MupFsControl(PDEVICE_OBJECT DeviceObject,
RtlMoveMemory(FullPath, UncProvider->DeviceName.Buffer, UncProvider->DeviceName.Length);
RtlMoveMemory((PWSTR)((ULONG_PTR)FullPath + UncProvider->DeviceName.Length), FileObject->FileName.Buffer, FileObject->FileName.Length);
- /* And redo the path in the file oject */
+ /* And redo the path in the file object */
ExFreePoolWithTag(FileObject->FileName.Buffer, 0);
FileObject->FileName.Buffer = FullPath;
FileObject->FileName.MaximumLength = TotalLength;
}
/* Otherwise, if the prefix was in the prefix table, just drop it:
- * we have a provider which superseeds the accepted prefix, so leave
+ * we have a provider which supersedes the accepted prefix, so leave
* room for the new prefix/provider
*/
ExAcquireResourceExclusiveLite(&MupPrefixTableLock, TRUE);
MasterQueryContext->LatestProvider = QueryContext->UncProvider;
MasterQueryContext->LatestStatus = Status;
- if (MasterQueryContext->FileObject->FsContext2 != DFS_MAGIC_CCB)
+ if (MasterQueryContext->FileObject->FsContext2 != (PVOID)DFS_DOWNLEVEL_OPEN_CONTEXT)
{
/* Allocate a buffer for the prefix */
AcceptedPrefix = ExAllocatePoolWithTag(PagedPool, QueryResponse->LengthAccepted, TAG_MUP);
TableStatus = MupOrderedErrorList[0];
LatestPos = 0;
- /* Otherwise, time to compare statuteses, between the latest failed
+ /* Otherwise, time to compare statuses, between the latest failed
* and the current failure.
* We have an order table of failed status: the deeper you go in the
* table, the more the error is critical.
return STATUS_MORE_PROCESSING_REQUIRED;
}
-NTSTATUS
-DfsFsdCreate(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
NTSTATUS
CreateRedirectedFile(PIRP Irp,
PFILE_OBJECT FileObject,
}
/* Ok, at that point, that's a regular MUP opening (if no DFS) */
- if (!MupEnableDfs || FileObject->FsContext2 == DFS_MAGIC_CCB)
+ if (!MupEnableDfs || FileObject->FsContext2 == (PVOID)DFS_DOWNLEVEL_OPEN_CONTEXT)
{
/* We won't complete immediately */
IoMarkIrpPending(Irp);
}
}
-NTSTATUS
-DfsFsdCleanup(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
NTSTATUS
NTAPI
MupCleanup(PDEVICE_OBJECT DeviceObject,
return STATUS_SUCCESS;
}
-NTSTATUS
-DfsFsdClose(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
NTSTATUS
NTAPI
MupClose(PDEVICE_OBJECT DeviceObject,
return Status;
}
-VOID
-DfsUnload(PDRIVER_OBJECT DriverObject)
-{
- UNIMPLEMENTED;
-}
-
VOID
NTAPI
MupUnload(PDRIVER_OBJECT DriverObject)
MupUninitializeData();
}
-INIT_SECTION
-NTSTATUS
-DfsDriverEntry(PDRIVER_OBJECT DriverObject,
- PUNICODE_STRING RegistryPath)
-{
- /* We don't support DFS yet, so
- * fail to make sure it remains disabled
- */
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
/*
* FUNCTION: Called by the system to initialize the driver
* ARGUMENTS: