These errors dropped when I swaped #include "winioctl.h" and #include :
//
// Windows IOCTL definitions.
//
#include "winioctl.h"
//
// GUID include
//
#include <initguid.h>
//
// Device Interface GUID
// 0x50DD5230, 0xBA8A, 0x11D1, 0xBF,0x5D,0x00,0x00,0xF8,0x05,0xF5,0x30
//
DEFINE_GUID(GUID_DEVINTERFACE_BixVReader,
0x50DD5230, 0xBA8A, 0x11D1, 0xBF,0x5D,0x00,0x00,0xF8,0x05,0xF5,0x30);
I'm not an expert in C++ and it seems strange to me, but still. Any comments on this issue are welcome.