How to change my codes for vista?
Hello
I trying to apply my File Filter Driver to Windows Vista.
However, It's not properly working now.
There are many problems.
following code, IoCallDriver return the Error code(0x8000006? 0xC00000F?)
I setup the dispatch function in DriverEntry such as,
DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
FProtModDirectoryDispatch;
and following code is FProtModDirectoryDispatch's source.
int bFileInfoValid = TRUE;
// call lower driver and wait
UCHAR ucFlags = IrpSp->Flags;
IrpSp->Flags |= SL_RETURN_SINGLE_ENTRY;
IoCopyCurrentIrpStackLocationToNext(Irp);
IoSetCompletionRoutine(Irp, UtilSetEventCompletionRoutine, &Event, TRUE,
TRUE, TRUE);
KeClearEvent(&Event);
Status = IoCallDriver(hookExt->FileSystem, Irp);
if (Status == STATUS_PENDING) {
DEBUG("[DIRROUTINE] IoCallDriver is pending [%X]");
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
Status = Irp->IoStatus.Status;
}
IrpSp->Flags = ucFlags;
if (Status != STATUS_SUCCESS) {
DEBUG("[DIRROUTINE] IoCallDriver/WaitForSingleObject Failed [%X]", Status);
break;
}
the error code is NO_SUCH_FILES. but I don't understand what's wrong.
please let me know :'(
--
WebSite :
Realization of Dream { imagine your dream} - http://rodream.net
WebMail :
rodream@naver.com