ObQueryNameString causes bugcheck

Hi,
I call ObQueryNameString on an FILE OBJECT in my Create/Read/Write
dispatch routine, and it causes a PAGE_FAULT_IN_NONPAGED_AREA
bugcheck. But it works if I call it on an DEVICE OBJECT.

I wonder if there are any restrictions on the uses of ObQueryNameString.

Thanks!

Zm Chen

Don’t try it on a file object- it causes reentrancy.

Zm Chen wrote:

Hi,
I call ObQueryNameString on an FILE OBJECT in my Create/Read/Write
dispatch routine, and it causes a PAGE_FAULT_IN_NONPAGED_AREA
bugcheck. But it works if I call it on an DEVICE OBJECT.

I wonder if there are any restrictions on the uses of ObQueryNameString.

Thanks!

Zm Chen


You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.