typedef struct _DEVICE_FLAGS { unsigned long Failed : 1; unsigned long ReadOnly : 1; unsigned long Removable : 1; unsigned long ConsoleIn : 1; unsigned long ConsoleOut : 1; unsigned long Input : 1; unsigned long Output : 1; } DEVICE_FLAGS, *PDEVICE_FLAGS;