Open driver with read/write

Hello,

When I open the driver:

FDeviceHandle := CreateFile( pDev.sAddress,
GENERIC_WRITE or GENERIC_READ ,
FILE_SHARE_WRITE or FILE_SHARE_READ,
nil,
OPEN_EXISTING,
0,
0
);

How can I see (in the driver) with what attributes the driver is opened?

I want to know if it’s with only GENERIC_READ or with both GENERIC_READ
and GENERIC_WRITE.

Thanks
Marten

> How can I see (in the driver) with what attributes the driver is opened?

IrpSp->Parameters.Create.SecurityContext->DesiredAccess

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com