How to get PSID from FastIoQueryOpen?

Hello

I can extract PSID from IRP_MJ_CREATE while relying on
IrpSp->Parameters.Create.SecurityContext.

How can I get PSID from:
FastIoQueryOpen(
IN PIRP,
OUT PFILE_NETWORK_OPEN_INFORMATION,
IN PDEVICE_OBJECT)

?


Elias

You can extract the parameters from the IRP passed down to the
FastIoQueryOpen, can’t you ?

L.

“Ladislav Zezula” wrote in message news:xxxxx@ntfsd…
> You can extract the parameters from the IRP passed down to the
> FastIoQueryOpen, can’t you ?
>
> L.
>

Should I treat FastioQueryOpen’s Irp stack location as if it was an
IRP_MJ_CREATE request?

Usually, when IRP_MJ_CREATE is passed, the PSID is extracted starting from
this: IrpSp->Parameters.Create.SecurityContext


Elias

> Should I treat FastioQueryOpen’s Irp stack location as if it was an

IRP_MJ_CREATE request?

Yes, you can.

L.