File disposition problem

Hi All ,

I’m developing a Windows 2000 filter driver. I’m trapping the IRP_MJ_CREATE
IRPs. While doing so, I’ve observed that for File creation (FILE_CREATE) the
disposition value is 0x00000005 whereas for Overwrite_if(FILE_OVERWRITE_IF)
it is 0x00000002. But in the windows 2000 ddk - ntddk.h it is defined as :

#define FILE_SUPERCEDE 0x00000000
#define FILE_OPEN 0x00000001
#define FILE_CREATE 0x00000002
#define FILE_OPEN_IF 0x00000003
#define FILE_OVERWRITE 0x00000004
#define FILE_OVERWRITE_IF 0x00000005
#define FILE_MAXIMUM_DISPOSTION 0x00000005

Is it a bug in the header file?
Can some one throw light on it .

Thanks in advance for the help.
Sreenivas

How you can know the Create has disposition 5 and Overwrite If has 2 ?
Please give better description of your trubble.

Paul

PS: I think the header is correct.

-----P?vodn? zpr?va-----
Od: Sreenivas _cv [SMTP:xxxxx@Satyam.com]
Odesl?no: 6. ?ervence 2000 6:04
Komu: File Systems Developers
P?edm?t: [ntfsd] File disposition problem

Hi All ,

I’m developing a Windows 2000 filter driver. I’m trapping the
IRP_MJ_CREATE IRPs. While doing so, I’ve observed that for File creation
(FILE_CREATE) the disposition value is 0x00000005 whereas for
Overwrite_if(FILE_OVERWRITE_IF) it is 0x00000002. But in the windows 2000
ddk - ntddk.h it is defined as :

#define FILE_SUPERCEDE 0x00000000
#define FILE_OPEN 0x00000001
#define FILE_CREATE 0x00000002
#define FILE_OPEN_IF 0x00000003
#define FILE_OVERWRITE 0x00000004
#define FILE_OVERWRITE_IF 0x00000005
#define FILE_MAXIMUM_DISPOSTION 0x00000005

Is it a bug in the header file?
Can some one throw light on it .

Thanks in advance for the help.
Sreenivas