/usr/i686-w64-mingw32/include/ddk/usbstorioctl.h is in mingw-w64-i686-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #pragma once
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
typedef struct tagACT_AUTHZ_STATE {
UCHAR ACT;
BOOLEAN fAuthorized;
} ACT_AUTHZ_STATE, *PACT_AUTHZ_STATE;
typedef struct tagSILO_COMMAND {
UCHAR SiloIndex;
UCHAR Command;
ULONG cbCommandBuffer;
UCHAR rgbCommandBuffer[ANYSIZE_ARRAY];
} SILO_COMMAND, *PSILO_COMMAND;
typedef enum _PDO_TYPE {
PDO_TYPE_UNDEFINED = 0,
PDO_TYPE_DISK,
PDO_TYPE_CONTROL,
PDO_TYPE_SILO,
PDO_TYPE_THIS = 256
} PDO_TYPE;
typedef enum _PDO_STATE {
PDO_STATE_UNDEFINED = 0,
PDO_STATE_STARTED,
PDO_STATE_NOT_STARTED
} PDO_STATE;
typedef enum _PDO_CAPS {
PDO_CAPABILITY_UNDEFINED = 0,
PDO_CAPABILITY_INC512_SET = 1,
PDO_CAPABILITY_INC512_CLEAR = 2
} PDO_CAPS;
typedef struct _ENUM_PDO_ENTRY {
UCHAR type;
UCHAR state;
UCHAR capabilities;
ULONG ulSTID;
UCHAR bSpecificationMajor;
UCHAR bSpecificationMinor;
UCHAR bImplementationMajor;
UCHAR bImplementationMinor;
WCHAR wszDeviceInstancePath[(2 * MAX_PATH) + 1];
} ENUM_PDO_ENTRY, *PENUM_PDO_ENTRY;
typedef struct _ENUM_PDO_RESULTS {
ULONG cEntries;
ENUM_PDO_ENTRY rgEntries[ANYSIZE_ARRAY];
} ENUM_PDO_RESULTS, *PENUM_PDO_RESULTS;
#define SIZE_ENUM_PDO_RESULTS_HEADER (sizeof(ENUM_PDO_RESULTS) - sizeof(ENUM_PDO_ENTRY))
#define IOCTL_EHSTOR_DEVICE_SET_AUTHZ_STATE CTL_CODE(IOCTL_STORAGE_BASE, 0x501, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_EHSTOR_DEVICE_GET_AUTHZ_STATE CTL_CODE(IOCTL_STORAGE_BASE, 0x502, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_EHSTOR_DEVICE_SILO_COMMAND CTL_CODE(IOCTL_STORAGE_BASE, 0x503, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_EHSTOR_DEVICE_ENUMERATE_PDOS CTL_CODE(IOCTL_STORAGE_BASE, 0x504, METHOD_BUFFERED, FILE_ANY_ACCESS)
DEFINE_GUID(GUID_USBSTOR_EHSTOR_SILO_INTERFACE, 0x7c2bcf57, 0x2bea, 0x46da, 0xad, 0x26, 0x78, 0xfd, 0xc8, 0x3c, 0xee, 0x46);
DEFINE_GUID(GUID_USBSTOR_EHSTOR_CONTROL_INTERFACE, 0x4f40006f, 0xb933, 0x4550, 0xb5, 0x32, 0x2b, 0x58, 0xce, 0xe6, 0x14, 0xd3);
|