update for HEAD-2003091401
[reactos.git] / include / ddk / ioctrl.h
1 #ifndef __INCLUDE_DDK_IOCTRL_H
2 #define __INCLUDE_DDK_IOCTRL_H
3
4
5 #define CTL_CODE(Dev, Func, Meth, Acc) ( ((Dev)<<16) | ((Acc)<<14) | ((Func)<<2) | (Meth))
6
7
8 /*#define DEVICE_TYPE_FROM_CTL_CODE(ctlCode) (((ULONG)(ctlCode&0xffff0000))>>16) */
9 /*#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003) */
10
11
12 /*  IOCTL Parameter buffering methods */
13 #define METHOD_BUFFERED    0
14 #define METHOD_IN_DIRECT   1
15 #define METHOD_OUT_DIRECT  2
16 #define METHOD_NEITHER     3
17
18 /*  IOCTL File access type */
19 #define FILE_ANY_ACCESS    0
20 #define FILE_READ_ACCESS   1
21 #define FILE_WRITE_ACCESS  2
22
23 #endif /* __INCLUDE_DDK_IOCTRL_H */