I am using sfilter from IFS windows server 2003 …
I use “IoVolumeDeviceToDosName” to get the driver letter.
the following is the function …
PUNICODE_STRING GetDriveLetter(PDEVICE_OBJECT StorageDevice)
{
NTSTATUS ntstat;
// Drive , drivebuffer is declared as global…
RtlInitEmptyUnicodeString(&Drive,drivebuffer,sizeof(drivebuffer) );
ntstat = IoVolumeDeviceToDosName( StorageDevice,&Drive);
if( STATUS_SUCCESS != ntstat )
{
DbgPrint(“\n IoVolumeDeviceToDosName Failed “);
}
else
DbgPrint(”\n DRIVE_LETTER =%wZ”,&Drive);
return &Drive;
}
I am calling the above function in IRP_MJ_CREATE dispatch …
PSFILTER_DEVICE_EXTENSION devExt = DeviceObject->DeviceExtension;
GetDriveLetter(devExt->StorageStackDeviceObject);
-…-…-…-…-.
I do not know what is wrong with my code …
It is working fine for first few IRP_MJ_CREATE but after few IRP_MJ_CREATE it hangs …
No blue screen but…
I noticed that the IoVolumeDeviceToDosName is not returning …
Any help on “what could be the problem…”…??
PRIYA MS
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.