Hey Everyone,

I've been doing some system stuff and I went to compile my driver today using the WDK Checked Build Environment. I keep getting a bunch of errors but I think they're all being caused by one:

Code:
// ctrlcode.h
#define FILE_DEVICE_RK 0x00008001
#define IOCTL_TEST_CMD\
CTL_CODE(FILE_DEVICE_RK,0x801,METHOD_BUFFERED,FILE_READ_DATA|FILE_WRITE_DATA)
Error C2010: '0' : unexpected in macro formal parameter list
Error C2010: '|' : unexpected in macro formal parameter list
Error C2010: 'F' : unexpected in macro formal parameter list

I think, like I said, the other errors I'm getting other than the ones above are because it's not compiling the above include file correctly.

It's giving me a problem over the 0x801 hex value and the Or ( | ) between the File Read/Writes.

Any help would be greatly appreciated! I haven't worked in C for years and now I'm getting back to it and am clearly a bit rusty.

Thanks!