Re: Query On IoCreateDevice ???
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Thu, 20 Mar 2008 14:06:47 +0300
the value in IoGetCurrentIrpStackLocation(irp)->FileObject->FileName
is always NULL.
It is non-NULL only in PreCreate path.
Also, if you have symlink like \??\MySymlink pointing to \Device\MyDevice, then
you must pass \\.\MySymlink\MyRefString to CreateFile.
In this case, IoGetCurrentIrpStackLocation(irp)->FileObject->FileName in
PreCreate (MJ_CREATE before IoCallDriver down) will be \MyRefString
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
.
- Follow-Ups:
- Re: Query On IoCreateDevice ???
- From: Doron Holan [MSFT]
- Re: Query On IoCreateDevice ???
- From: Neo
- Re: Query On IoCreateDevice ???
- References:
- Query On IoCreateDevice ???
- From: Neo
- Re: Query On IoCreateDevice ???
- From: Maxim S. Shatskih
- Re: Query On IoCreateDevice ???
- From: Neo
- Re: Query On IoCreateDevice ???
- From: Doron Holan [MSFT]
- Re: Query On IoCreateDevice ???
- From: Neo
- Re: Query On IoCreateDevice ???
- From: Doron Holan [MSFT]
- Re: Query On IoCreateDevice ???
- From: Doron Holan [MSFT]
- Re: Query On IoCreateDevice ???
- From: Neo
- Query On IoCreateDevice ???
- Prev by Date: Re: ntstrsafe.h "No such file or directory in Wndows DDk 2600" ????
- Next by Date: Re: FUSION error
- Previous by thread: Re: Query On IoCreateDevice ???
- Next by thread: Re: Query On IoCreateDevice ???
- Index(es):