Hi,
Im having trouble getting FsRtlRegisterUncProvider() to work. The function
returns STATUS_INVALID_PARAMETER (0xC00000E)
Heres the code. The device object is created successfully.
Am I missing something obvious?
Thanks,
Jagannath
RtlInitUnicodeString(&fsDeviceName, L"\Simplefs");
/* Create our file system object, and register it with IO Manager.*/
ntStatus = IoCreateDevice(DriverObject,
0,
&fsDeviceName,
FILE_DEVICE_NETWORK_FILE_SYSTEM,
0,
FALSE,
&fsDevice);
if (!NT_SUCCESS(ntStatus)) {
DbgPrint ((“DriverEntry: Failed to create device object.\n”));
return ntStatus;
}
ntStatus = FsRtlRegisterUncProvider(&gMupHandle, &fsDeviceName, FALSE);
if (!NT_SUCCESS(ntStatus)) {
DbgPrint ((“DriverEntry: Error, registration failed: 0x%X!\n”,
ntStatus));
return ntStatus;
}