hi all,
Can i get the volume guid from my volume upper filter driver ?
I want to get it just after IRP_MN_START_DEVICE finished by lower device
and not return to the upper. So i try it by send
IOCTL_MOUNTMGR_QUERY_POINTS to mount mgr but failed with
STATUS_NO_SUCH_DEVICE.
Can anyone tell me if it is doable or not.
thanks.
my code like this:
switch (irpSp->MinorFunction) {
case IRP_MN_START_DEVICE:
KeInitializeEvent(&event, NotificationEvent, FALSE);
IoCopyCurrentIrpStackLocationToNext(Irp);
IoSetCompletionRoutine(Irp,
(PIO_COMPLETION_ROUTINE) FltStartCompletionRoutine,
&event,
TRUE,
TRUE,
TRUE);
status = IoCallDriver(devExt->TargetDeviceObject, Irp);
if (status == STATUS_PENDING) {
KeWaitForSingleObject(&event, Executive, KernelMode, FALSE, NULL);
status = Irp->IoStatus.Status;
}
if (NT_SUCCESS(status)) {
…
send IOCTL_MOUNTMGR_QUERY_POINTS to mount mgr
…
}