Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/Storage/IscsiDisc/mod.rs

raw
1 ::windows_targets::link!("iscsidsc.dll" "system" fn AddISNSServerA(address : ::windows_sys::core::PCSTR) -> u32);
2 ::windows_targets::link!("iscsidsc.dll" "system" fn AddISNSServerW(address : ::windows_sys::core::PCWSTR) -> u32);
3 ::windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionA(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, reserved : *mut ::core::ffi::c_void, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : ::windows_sys::core::PCSTR, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
4 ::windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiConnectionW(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, reserved : *mut ::core::ffi::c_void, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : ::windows_sys::core::PCSTR, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
5 ::windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalA(initiatorinstance : ::windows_sys::core::PCSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALA) -> u32);
6 ::windows_targets::link!("iscsidsc.dll" "system" fn AddIScsiSendTargetPortalW(initiatorinstance : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, loginoptions : *mut ISCSI_LOGIN_OPTIONS, securityflags : u64, portal : *mut ISCSI_TARGET_PORTALW) -> u32);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn AddIScsiStaticTargetA(targetname : ::windows_sys::core::PCSTR, targetalias : ::windows_sys::core::PCSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPA) -> u32);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn AddIScsiStaticTargetW(targetname : ::windows_sys::core::PCWSTR, targetalias : ::windows_sys::core::PCWSTR, targetflags : u32, persist : super::super::Foundation:: BOOLEAN, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, portalgroup : *mut ISCSI_TARGET_PORTAL_GROUPW) -> u32);
11 ::windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceA(devicepath : ::windows_sys::core::PCSTR) -> u32);
12 ::windows_targets::link!("iscsidsc.dll" "system" fn AddPersistentIScsiDeviceW(devicepath : ::windows_sys::core::PCWSTR) -> u32);
13 ::windows_targets::link!("iscsidsc.dll" "system" fn AddRadiusServerA(address : ::windows_sys::core::PCSTR) -> u32);
14 ::windows_targets::link!("iscsidsc.dll" "system" fn AddRadiusServerW(address : ::windows_sys::core::PCWSTR) -> u32);
15 ::windows_targets::link!("iscsidsc.dll" "system" fn ClearPersistentIScsiDevices() -> u32);
16 #[cfg(feature = "Win32_System_Ioctl")]
17 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_System_Ioctl\"`"] fn GetDevicesForIScsiSessionA(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, devicecount : *mut u32, devices : *mut ISCSI_DEVICE_ON_SESSIONA) -> u32);
18 #[cfg(feature = "Win32_System_Ioctl")]
19 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_System_Ioctl\"`"] fn GetDevicesForIScsiSessionW(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, devicecount : *mut u32, devices : *mut ISCSI_DEVICE_ON_SESSIONW) -> u32);
20 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiIKEInfoA(initiatorname : ::windows_sys::core::PCSTR, initiatorportnumber : u32, reserved : *mut u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION) -> u32);
21 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiIKEInfoW(initiatorname : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, reserved : *mut u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION) -> u32);
22 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiInitiatorNodeNameA(initiatornodename : ::windows_sys::core::PSTR) -> u32);
23 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiInitiatorNodeNameW(initiatornodename : ::windows_sys::core::PWSTR) -> u32);
24 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiSessionListA(buffersize : *mut u32, sessioncount : *mut u32, sessioninfo : *mut ISCSI_SESSION_INFOA) -> u32);
25 #[cfg(feature = "Win32_Foundation")]
26 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetIScsiSessionListEx(buffersize : *mut u32, sessioncountptr : *mut u32, sessioninfo : *mut ISCSI_SESSION_INFO_EX) -> u32);
27 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiSessionListW(buffersize : *mut u32, sessioncount : *mut u32, sessioninfo : *mut ISCSI_SESSION_INFOW) -> u32);
28 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationA(targetname : ::windows_sys::core::PCSTR, discoverymechanism : ::windows_sys::core::PCSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut ::core::ffi::c_void) -> u32);
29 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiTargetInformationW(targetname : ::windows_sys::core::PCWSTR, discoverymechanism : ::windows_sys::core::PCWSTR, infoclass : TARGET_INFORMATION_CLASS, buffersize : *mut u32, buffer : *mut ::core::ffi::c_void) -> u32);
30 ::windows_targets::link!("iscsidsc.dll" "system" fn GetIScsiVersionInformation(versioninfo : *mut ISCSI_VERSION_INFO) -> u32);
31 #[cfg(feature = "Win32_Foundation")]
32 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn LoginIScsiTargetA(targetname : ::windows_sys::core::PCSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : ::windows_sys::core::PCSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALA, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGA, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : ::windows_sys::core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn LoginIScsiTargetW(targetname : ::windows_sys::core::PCWSTR, isinformationalsession : super::super::Foundation:: BOOLEAN, initiatorinstance : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, targetportal : *mut ISCSI_TARGET_PORTALW, securityflags : u64, mappings : *mut ISCSI_TARGET_MAPPINGW, loginoptions : *mut ISCSI_LOGIN_OPTIONS, keysize : u32, key : ::windows_sys::core::PCSTR, ispersistent : super::super::Foundation:: BOOLEAN, uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, uniqueconnectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
35 ::windows_targets::link!("iscsidsc.dll" "system" fn LogoutIScsiTarget(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
36 ::windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerA(address : ::windows_sys::core::PCSTR) -> u32);
37 ::windows_targets::link!("iscsidsc.dll" "system" fn RefreshISNSServerW(address : ::windows_sys::core::PCWSTR) -> u32);
38 ::windows_targets::link!("iscsidsc.dll" "system" fn RefreshIScsiSendTargetPortalA(initiatorinstance : ::windows_sys::core::PCSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALA) -> u32);
39 ::windows_targets::link!("iscsidsc.dll" "system" fn RefreshIScsiSendTargetPortalW(initiatorinstance : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALW) -> u32);
40 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveISNSServerA(address : ::windows_sys::core::PCSTR) -> u32);
41 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveISNSServerW(address : ::windows_sys::core::PCWSTR) -> u32);
42 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiConnection(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, connectionid : *mut ISCSI_UNIQUE_SESSION_ID) -> u32);
43 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiPersistentTargetA(initiatorinstance : ::windows_sys::core::PCSTR, initiatorportnumber : u32, targetname : ::windows_sys::core::PCSTR, portal : *mut ISCSI_TARGET_PORTALA) -> u32);
44 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiPersistentTargetW(initiatorinstance : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, targetname : ::windows_sys::core::PCWSTR, portal : *mut ISCSI_TARGET_PORTALW) -> u32);
45 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiSendTargetPortalA(initiatorinstance : ::windows_sys::core::PCSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALA) -> u32);
46 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiSendTargetPortalW(initiatorinstance : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, portal : *mut ISCSI_TARGET_PORTALW) -> u32);
47 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiStaticTargetA(targetname : ::windows_sys::core::PCSTR) -> u32);
48 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveIScsiStaticTargetW(targetname : ::windows_sys::core::PCWSTR) -> u32);
49 ::windows_targets::link!("iscsidsc.dll" "system" fn RemovePersistentIScsiDeviceA(devicepath : ::windows_sys::core::PCSTR) -> u32);
50 ::windows_targets::link!("iscsidsc.dll" "system" fn RemovePersistentIScsiDeviceW(devicepath : ::windows_sys::core::PCWSTR) -> u32);
51 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveRadiusServerA(address : ::windows_sys::core::PCSTR) -> u32);
52 ::windows_targets::link!("iscsidsc.dll" "system" fn RemoveRadiusServerW(address : ::windows_sys::core::PCWSTR) -> u32);
53 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportActiveIScsiTargetMappingsA(buffersize : *mut u32, mappingcount : *mut u32, mappings : *mut ISCSI_TARGET_MAPPINGA) -> u32);
54 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportActiveIScsiTargetMappingsW(buffersize : *mut u32, mappingcount : *mut u32, mappings : *mut ISCSI_TARGET_MAPPINGW) -> u32);
55 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportISNSServerListA(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PSTR) -> u32);
56 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportISNSServerListW(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PWSTR) -> u32);
57 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiInitiatorListA(buffersize : *mut u32, buffer : ::windows_sys::core::PSTR) -> u32);
58 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiInitiatorListW(buffersize : *mut u32, buffer : ::windows_sys::core::PWSTR) -> u32);
59 #[cfg(feature = "Win32_Foundation")]
60 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReportIScsiPersistentLoginsA(count : *mut u32, persistentlogininfo : *mut PERSISTENT_ISCSI_LOGIN_INFOA, buffersizeinbytes : *mut u32) -> u32);
61 #[cfg(feature = "Win32_Foundation")]
62 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReportIScsiPersistentLoginsW(count : *mut u32, persistentlogininfo : *mut PERSISTENT_ISCSI_LOGIN_INFOW, buffersizeinbytes : *mut u32) -> u32);
63 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsA(portalcount : *mut u32, portalinfo : *mut ISCSI_TARGET_PORTAL_INFOA) -> u32);
64 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsExA(portalcount : *mut u32, portalinfosize : *mut u32, portalinfo : *mut ISCSI_TARGET_PORTAL_INFO_EXA) -> u32);
65 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsExW(portalcount : *mut u32, portalinfosize : *mut u32, portalinfo : *mut ISCSI_TARGET_PORTAL_INFO_EXW) -> u32);
66 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiSendTargetPortalsW(portalcount : *mut u32, portalinfo : *mut ISCSI_TARGET_PORTAL_INFOW) -> u32);
67 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsA(initiatorname : ::windows_sys::core::PCSTR, targetname : ::windows_sys::core::PCSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALA) -> u32);
68 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportIScsiTargetPortalsW(initiatorname : ::windows_sys::core::PCWSTR, targetname : ::windows_sys::core::PCWSTR, targetportaltag : *mut u16, elementcount : *mut u32, portals : *mut ISCSI_TARGET_PORTALW) -> u32);
69 #[cfg(feature = "Win32_Foundation")]
70 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReportIScsiTargetsA(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : ::windows_sys::core::PSTR) -> u32);
71 #[cfg(feature = "Win32_Foundation")]
72 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ReportIScsiTargetsW(forceupdate : super::super::Foundation:: BOOLEAN, buffersize : *mut u32, buffer : ::windows_sys::core::PWSTR) -> u32);
73 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportPersistentIScsiDevicesA(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PSTR) -> u32);
74 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportPersistentIScsiDevicesW(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PWSTR) -> u32);
75 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportRadiusServerListA(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PSTR) -> u32);
76 ::windows_targets::link!("iscsidsc.dll" "system" fn ReportRadiusServerListW(buffersizeinchar : *mut u32, buffer : ::windows_sys::core::PWSTR) -> u32);
77 ::windows_targets::link!("iscsidsc.dll" "system" fn SendScsiInquiry(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, evpdcmddt : u8, pagecode : u8, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32);
78 ::windows_targets::link!("iscsidsc.dll" "system" fn SendScsiReadCapacity(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, lun : u64, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32);
79 ::windows_targets::link!("iscsidsc.dll" "system" fn SendScsiReportLuns(uniquesessionid : *mut ISCSI_UNIQUE_SESSION_ID, scsistatus : *mut u8, responsesize : *mut u32, responsebuffer : *mut u8, sensesize : *mut u32, sensebuffer : *mut u8) -> u32);
80 #[cfg(feature = "Win32_Foundation")]
81 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetIScsiGroupPresharedKey(keylength : u32, key : *mut u8, persist : super::super::Foundation:: BOOLEAN) -> u32);
82 #[cfg(feature = "Win32_Foundation")]
83 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetIScsiIKEInfoA(initiatorname : ::windows_sys::core::PCSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32);
84 #[cfg(feature = "Win32_Foundation")]
85 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetIScsiIKEInfoW(initiatorname : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, authinfo : *mut IKE_AUTHENTICATION_INFORMATION, persist : super::super::Foundation:: BOOLEAN) -> u32);
86 ::windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorCHAPSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32);
87 ::windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameA(initiatornodename : ::windows_sys::core::PCSTR) -> u32);
88 ::windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorNodeNameW(initiatornodename : ::windows_sys::core::PCWSTR) -> u32);
89 ::windows_targets::link!("iscsidsc.dll" "system" fn SetIScsiInitiatorRADIUSSharedSecret(sharedsecretlength : u32, sharedsecret : *mut u8) -> u32);
90 #[cfg(feature = "Win32_Foundation")]
91 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetIScsiTunnelModeOuterAddressA(initiatorname : ::windows_sys::core::PCSTR, initiatorportnumber : u32, destinationaddress : ::windows_sys::core::PCSTR, outermodeaddress : ::windows_sys::core::PCSTR, persist : super::super::Foundation:: BOOLEAN) -> u32);
92 #[cfg(feature = "Win32_Foundation")]
93 ::windows_targets::link!("iscsidsc.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetIScsiTunnelModeOuterAddressW(initiatorname : ::windows_sys::core::PCWSTR, initiatorportnumber : u32, destinationaddress : ::windows_sys::core::PCWSTR, outermodeaddress : ::windows_sys::core::PCWSTR, persist : super::super::Foundation:: BOOLEAN) -> u32);
94 ::windows_targets::link!("iscsidsc.dll" "system" fn SetupPersistentIScsiDevices() -> u32);
95 ::windows_targets::link!("iscsidsc.dll" "system" fn SetupPersistentIScsiVolumes() -> u32);
96 pub const ATA_FLAGS_48BIT_COMMAND: u32 = 8u32;
97 pub const ATA_FLAGS_DATA_IN: u32 = 2u32;
98 pub const ATA_FLAGS_DATA_OUT: u32 = 4u32;
99 pub const ATA_FLAGS_DRDY_REQUIRED: u32 = 1u32;
100 pub const ATA_FLAGS_NO_MULTIPLE: u32 = 32u32;
101 pub const ATA_FLAGS_USE_DMA: u32 = 16u32;
102 pub const DD_SCSI_DEVICE_NAME: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("\\Device\\ScsiPort");
103 pub const DUMP_DRIVER_NAME_LENGTH: u32 = 15u32;
104 pub const DUMP_EX_FLAG_DRIVER_FULL_PATH_SUPPORT: u32 = 8u32;
105 pub const DUMP_EX_FLAG_RESUME_SUPPORT: u32 = 4u32;
106 pub const DUMP_EX_FLAG_SUPPORT_64BITMEMORY: u32 = 1u32;
107 pub const DUMP_EX_FLAG_SUPPORT_DD_TELEMETRY: u32 = 2u32;
108 pub const DUMP_POINTERS_VERSION_1: u32 = 1u32;
109 pub const DUMP_POINTERS_VERSION_2: u32 = 2u32;
110 pub const DUMP_POINTERS_VERSION_3: u32 = 3u32;
111 pub const DUMP_POINTERS_VERSION_4: u32 = 4u32;
112 pub const DiscoveryMechanisms: TARGET_INFORMATION_CLASS = 2i32;
113 pub const FILE_DEVICE_SCSI: u32 = 27u32;
114 pub const FIRMWARE_FUNCTION_ACTIVATE: u32 = 3u32;
115 pub const FIRMWARE_FUNCTION_DOWNLOAD: u32 = 2u32;
116 pub const FIRMWARE_FUNCTION_GET_INFO: u32 = 1u32;
117 pub const FIRMWARE_REQUEST_BLOCK_STRUCTURE_VERSION: u32 = 1u32;
118 pub const FIRMWARE_REQUEST_FLAG_CONTROLLER: u32 = 1u32;
119 pub const FIRMWARE_REQUEST_FLAG_FIRST_SEGMENT: u32 = 4u32;
120 pub const FIRMWARE_REQUEST_FLAG_LAST_SEGMENT: u32 = 2u32;
121 pub const FIRMWARE_REQUEST_FLAG_REPLACE_EXISTING_IMAGE: u32 = 1073741824u32;
122 pub const FIRMWARE_REQUEST_FLAG_SWITCH_TO_EXISTING_FIRMWARE: u32 = 2147483648u32;
123 pub const FIRMWARE_STATUS_COMMAND_ABORT: u32 = 133u32;
124 pub const FIRMWARE_STATUS_CONTROLLER_ERROR: u32 = 16u32;
125 pub const FIRMWARE_STATUS_DEVICE_ERROR: u32 = 64u32;
126 pub const FIRMWARE_STATUS_END_OF_MEDIA: u32 = 134u32;
127 pub const FIRMWARE_STATUS_ERROR: u32 = 1u32;
128 pub const FIRMWARE_STATUS_ID_NOT_FOUND: u32 = 131u32;
129 pub const FIRMWARE_STATUS_ILLEGAL_LENGTH: u32 = 135u32;
130 pub const FIRMWARE_STATUS_ILLEGAL_REQUEST: u32 = 2u32;
131 pub const FIRMWARE_STATUS_INPUT_BUFFER_TOO_BIG: u32 = 4u32;
132 pub const FIRMWARE_STATUS_INTERFACE_CRC_ERROR: u32 = 128u32;
133 pub const FIRMWARE_STATUS_INVALID_IMAGE: u32 = 7u32;
134 pub const FIRMWARE_STATUS_INVALID_PARAMETER: u32 = 3u32;
135 pub const FIRMWARE_STATUS_INVALID_SLOT: u32 = 6u32;
136 pub const FIRMWARE_STATUS_MEDIA_CHANGE: u32 = 130u32;
137 pub const FIRMWARE_STATUS_MEDIA_CHANGE_REQUEST: u32 = 132u32;
138 pub const FIRMWARE_STATUS_OUTPUT_BUFFER_TOO_SMALL: u32 = 5u32;
139 pub const FIRMWARE_STATUS_POWER_CYCLE_REQUIRED: u32 = 32u32;
140 pub const FIRMWARE_STATUS_SUCCESS: u32 = 0u32;
141 pub const FIRMWARE_STATUS_UNCORRECTABLE_DATA_ERROR: u32 = 129u32;
142 pub const HYBRID_FUNCTION_DEMOTE_BY_SIZE: u32 = 19u32;
143 pub const HYBRID_FUNCTION_DISABLE_CACHING_MEDIUM: u32 = 16u32;
144 pub const HYBRID_FUNCTION_ENABLE_CACHING_MEDIUM: u32 = 17u32;
145 pub const HYBRID_FUNCTION_GET_INFO: u32 = 1u32;
146 pub const HYBRID_FUNCTION_SET_DIRTY_THRESHOLD: u32 = 18u32;
147 pub const HYBRID_REQUEST_BLOCK_STRUCTURE_VERSION: u32 = 1u32;
148 pub const HYBRID_REQUEST_INFO_STRUCTURE_VERSION: u32 = 1u32;
149 pub const HYBRID_STATUS_ENABLE_REFCOUNT_HOLD: u32 = 16u32;
150 pub const HYBRID_STATUS_ILLEGAL_REQUEST: u32 = 1u32;
151 pub const HYBRID_STATUS_INVALID_PARAMETER: u32 = 2u32;
152 pub const HYBRID_STATUS_OUTPUT_BUFFER_TOO_SMALL: u32 = 3u32;
153 pub const HYBRID_STATUS_SUCCESS: u32 = 0u32;
154 pub const ID_FQDN: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("2");
155 pub const ID_IPV4_ADDR: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1");
156 pub const ID_IPV6_ADDR: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("5");
157 pub const ID_USER_FQDN: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("3");
158 pub const IKE_AUTHENTICATION_PRESHARED_KEY_METHOD: IKE_AUTHENTICATION_METHOD = 1i32;
159 pub const IOCTL_ATA_MINIPORT: u32 = 315444u32;
160 pub const IOCTL_ATA_PASS_THROUGH: u32 = 315436u32;
161 pub const IOCTL_ATA_PASS_THROUGH_DIRECT: u32 = 315440u32;
162 pub const IOCTL_IDE_PASS_THROUGH: u32 = 315432u32;
163 pub const IOCTL_MINIPORT_PROCESS_SERVICE_IRP: u32 = 315448u32;
164 pub const IOCTL_MINIPORT_SIGNATURE_DSM_GENERAL: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("MPDSMGEN");
165 pub const IOCTL_MINIPORT_SIGNATURE_DSM_NOTIFICATION: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("MPDSM ");
166 pub const IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("ENDURINF");
167 pub const IOCTL_MINIPORT_SIGNATURE_FIRMWARE: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("FIRMWARE");
168 pub const IOCTL_MINIPORT_SIGNATURE_HYBRDISK: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("HYBRDISK");
169 pub const IOCTL_MINIPORT_SIGNATURE_QUERY_PHYSICAL_TOPOLOGY: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("TOPOLOGY");
170 pub const IOCTL_MINIPORT_SIGNATURE_QUERY_PROTOCOL: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("PROTOCOL");
171 pub const IOCTL_MINIPORT_SIGNATURE_QUERY_TEMPERATURE: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("TEMPERAT");
172 pub const IOCTL_MINIPORT_SIGNATURE_SCSIDISK: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("SCSIDISK");
173 pub const IOCTL_MINIPORT_SIGNATURE_SET_PROTOCOL: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("SETPROTO");
174 pub const IOCTL_MINIPORT_SIGNATURE_SET_TEMPERATURE_THRESHOLD: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("SETTEMPT");
175 pub const IOCTL_MPIO_PASS_THROUGH_PATH: u32 = 315452u32;
176 pub const IOCTL_MPIO_PASS_THROUGH_PATH_DIRECT: u32 = 315456u32;
177 pub const IOCTL_MPIO_PASS_THROUGH_PATH_DIRECT_EX: u32 = 315472u32;
178 pub const IOCTL_MPIO_PASS_THROUGH_PATH_EX: u32 = 315468u32;
179 pub const IOCTL_SCSI_BASE: u32 = 4u32;
180 pub const IOCTL_SCSI_FREE_DUMP_POINTERS: u32 = 266276u32;
181 pub const IOCTL_SCSI_GET_ADDRESS: u32 = 266264u32;
182 pub const IOCTL_SCSI_GET_CAPABILITIES: u32 = 266256u32;
183 pub const IOCTL_SCSI_GET_DUMP_POINTERS: u32 = 266272u32;
184 pub const IOCTL_SCSI_GET_INQUIRY_DATA: u32 = 266252u32;
185 pub const IOCTL_SCSI_MINIPORT: u32 = 315400u32;
186 pub const IOCTL_SCSI_PASS_THROUGH: u32 = 315396u32;
187 pub const IOCTL_SCSI_PASS_THROUGH_DIRECT: u32 = 315412u32;
188 pub const IOCTL_SCSI_PASS_THROUGH_DIRECT_EX: u32 = 315464u32;
189 pub const IOCTL_SCSI_PASS_THROUGH_EX: u32 = 315460u32;
190 pub const IOCTL_SCSI_RESCAN_BUS: u32 = 266268u32;
191 pub const ISCSI_CHAP_AUTH_TYPE: ISCSI_AUTH_TYPES = 1i32;
192 pub const ISCSI_DIGEST_TYPE_CRC32C: ISCSI_DIGEST_TYPES = 1i32;
193 pub const ISCSI_DIGEST_TYPE_NONE: ISCSI_DIGEST_TYPES = 0i32;
194 pub const ISCSI_LOGIN_FLAG_ALLOW_PORTAL_HOPPING: u32 = 8u32;
195 pub const ISCSI_LOGIN_FLAG_MULTIPATH_ENABLED: u32 = 2u32;
196 pub const ISCSI_LOGIN_FLAG_REQUIRE_IPSEC: u32 = 1u32;
197 pub const ISCSI_LOGIN_FLAG_RESERVED1: u32 = 4u32;
198 pub const ISCSI_LOGIN_FLAG_USE_RADIUS_RESPONSE: u32 = 16u32;
199 pub const ISCSI_LOGIN_FLAG_USE_RADIUS_VERIFICATION: u32 = 32u32;
200 pub const ISCSI_LOGIN_OPTIONS_AUTH_TYPE: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000080");
201 pub const ISCSI_LOGIN_OPTIONS_DATA_DIGEST: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000002");
202 pub const ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_RETAIN: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000010");
203 pub const ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_WAIT: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000008");
204 pub const ISCSI_LOGIN_OPTIONS_HEADER_DIGEST: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000001");
205 pub const ISCSI_LOGIN_OPTIONS_MAXIMUM_CONNECTIONS: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000004");
206 pub const ISCSI_LOGIN_OPTIONS_PASSWORD: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000040");
207 pub const ISCSI_LOGIN_OPTIONS_USERNAME: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000020");
208 pub const ISCSI_LOGIN_OPTIONS_VERSION: u32 = 0u32;
209 pub const ISCSI_MUTUAL_CHAP_AUTH_TYPE: ISCSI_AUTH_TYPES = 2i32;
210 pub const ISCSI_NO_AUTH_TYPE: ISCSI_AUTH_TYPES = 0i32;
211 pub const ISCSI_SECURITY_FLAG_AGGRESSIVE_MODE_ENABLED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000008");
212 pub const ISCSI_SECURITY_FLAG_IKE_IPSEC_ENABLED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000002");
213 pub const ISCSI_SECURITY_FLAG_MAIN_MODE_ENABLED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000004");
214 pub const ISCSI_SECURITY_FLAG_PFS_ENABLED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000010");
215 pub const ISCSI_SECURITY_FLAG_TRANSPORT_MODE_PREFERRED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000020");
216 pub const ISCSI_SECURITY_FLAG_TUNNEL_MODE_PREFERRED: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000040");
217 pub const ISCSI_SECURITY_FLAG_VALID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("0x00000001");
218 pub const ISCSI_TARGET_FLAG_HIDE_STATIC_TARGET: u32 = 2u32;
219 pub const ISCSI_TARGET_FLAG_MERGE_TARGET_INFORMATION: u32 = 4u32;
220 pub const ISCSI_TCP_PROTOCOL_TYPE: TARGETPROTOCOLTYPE = 0i32;
221 pub const InitiatorName: TARGET_INFORMATION_CLASS = 5i32;
222 pub const LoginOptions: TARGET_INFORMATION_CLASS = 7i32;
223 pub const MAX_ISCSI_ALIAS_LEN: u32 = 255u32;
224 pub const MAX_ISCSI_DISCOVERY_DOMAIN_LEN: u32 = 256u32;
225 pub const MAX_ISCSI_HBANAME_LEN: u32 = 256u32;
226 pub const MAX_ISCSI_NAME_LEN: u32 = 223u32;
227 pub const MAX_ISCSI_PORTAL_ADDRESS_LEN: u32 = 256u32;
228 pub const MAX_ISCSI_PORTAL_ALIAS_LEN: u32 = 256u32;
229 pub const MAX_ISCSI_PORTAL_NAME_LEN: u32 = 256u32;
230 pub const MAX_ISCSI_TEXT_ADDRESS_LEN: u32 = 256u32;
231 pub const MAX_RADIUS_ADDRESS_LEN: u32 = 41u32;
232 pub const MINIPORT_DSM_NOTIFICATION_VERSION: u32 = 1u32;
233 pub const MINIPORT_DSM_NOTIFICATION_VERSION_1: u32 = 1u32;
234 pub const MINIPORT_DSM_NOTIFY_FLAG_BEGIN: u32 = 1u32;
235 pub const MINIPORT_DSM_NOTIFY_FLAG_END: u32 = 2u32;
236 pub const MINIPORT_DSM_PROFILE_CRASHDUMP_FILE: u32 = 3u32;
237 pub const MINIPORT_DSM_PROFILE_HIBERNATION_FILE: u32 = 2u32;
238 pub const MINIPORT_DSM_PROFILE_PAGE_FILE: u32 = 1u32;
239 pub const MINIPORT_DSM_PROFILE_UNKNOWN: u32 = 0u32;
240 pub const MPIO_IOCTL_FLAG_INVOLVE_DSM: u32 = 4u32;
241 pub const MPIO_IOCTL_FLAG_USE_PATHID: u32 = 1u32;
242 pub const MPIO_IOCTL_FLAG_USE_SCSIADDRESS: u32 = 2u32;
243 pub const MpStorageDiagnosticLevelDefault: MP_STORAGE_DIAGNOSTIC_LEVEL = 0i32;
244 pub const MpStorageDiagnosticLevelMax: MP_STORAGE_DIAGNOSTIC_LEVEL = 1i32;
245 pub const MpStorageDiagnosticTargetTypeHbaFirmware: MP_STORAGE_DIAGNOSTIC_TARGET_TYPE = 3i32;
246 pub const MpStorageDiagnosticTargetTypeMax: MP_STORAGE_DIAGNOSTIC_TARGET_TYPE = 4i32;
247 pub const MpStorageDiagnosticTargetTypeMiniport: MP_STORAGE_DIAGNOSTIC_TARGET_TYPE = 2i32;
248 pub const MpStorageDiagnosticTargetTypeUndefined: MP_STORAGE_DIAGNOSTIC_TARGET_TYPE = 0i32;
249 pub const NRB_FUNCTION_ADD_LBAS_PINNED_SET: u32 = 16u32;
250 pub const NRB_FUNCTION_FLUSH_NVCACHE: u32 = 20u32;
251 pub const NRB_FUNCTION_NVCACHE_INFO: u32 = 236u32;
252 pub const NRB_FUNCTION_NVCACHE_POWER_MODE_RETURN: u32 = 1u32;
253 pub const NRB_FUNCTION_NVCACHE_POWER_MODE_SET: u32 = 0u32;
254 pub const NRB_FUNCTION_NVSEPARATED_FLUSH: u32 = 193u32;
255 pub const NRB_FUNCTION_NVSEPARATED_INFO: u32 = 192u32;
256 pub const NRB_FUNCTION_NVSEPARATED_WB_DISABLE: u32 = 194u32;
257 pub const NRB_FUNCTION_NVSEPARATED_WB_REVERT_DEFAULT: u32 = 195u32;
258 pub const NRB_FUNCTION_PASS_HINT_PAYLOAD: u32 = 224u32;
259 pub const NRB_FUNCTION_QUERY_ASCENDER_STATUS: u32 = 208u32;
260 pub const NRB_FUNCTION_QUERY_CACHE_MISS: u32 = 19u32;
261 pub const NRB_FUNCTION_QUERY_HYBRID_DISK_STATUS: u32 = 209u32;
262 pub const NRB_FUNCTION_QUERY_PINNED_SET: u32 = 18u32;
263 pub const NRB_FUNCTION_REMOVE_LBAS_PINNED_SET: u32 = 17u32;
264 pub const NRB_FUNCTION_SPINDLE_STATUS: u32 = 229u32;
265 pub const NRB_ILLEGAL_REQUEST: u32 = 1u32;
266 pub const NRB_INPUT_DATA_OVERRUN: u32 = 3u32;
267 pub const NRB_INPUT_DATA_UNDERRUN: u32 = 4u32;
268 pub const NRB_INVALID_PARAMETER: u32 = 2u32;
269 pub const NRB_OUTPUT_DATA_OVERRUN: u32 = 5u32;
270 pub const NRB_OUTPUT_DATA_UNDERRUN: u32 = 6u32;
271 pub const NRB_SUCCESS: u32 = 0u32;
272 pub const NVSEPWriteCacheTypeNone: NV_SEP_WRITE_CACHE_TYPE = 1i32;
273 pub const NVSEPWriteCacheTypeUnknown: NV_SEP_WRITE_CACHE_TYPE = 0i32;
274 pub const NVSEPWriteCacheTypeWriteBack: NV_SEP_WRITE_CACHE_TYPE = 2i32;
275 pub const NVSEPWriteCacheTypeWriteThrough: NV_SEP_WRITE_CACHE_TYPE = 3i32;
276 pub const NV_SEP_CACHE_PARAMETER_VERSION: u32 = 1u32;
277 pub const NV_SEP_CACHE_PARAMETER_VERSION_1: u32 = 1u32;
278 pub const NvCacheStatusDisabled: NVCACHE_STATUS = 2i32;
279 pub const NvCacheStatusDisabling: NVCACHE_STATUS = 1i32;
280 pub const NvCacheStatusEnabled: NVCACHE_STATUS = 3i32;
281 pub const NvCacheStatusUnknown: NVCACHE_STATUS = 0i32;
282 pub const NvCacheTypeNone: NVCACHE_TYPE = 1i32;
283 pub const NvCacheTypeUnknown: NVCACHE_TYPE = 0i32;
284 pub const NvCacheTypeWriteBack: NVCACHE_TYPE = 2i32;
285 pub const NvCacheTypeWriteThrough: NVCACHE_TYPE = 3i32;
286 pub const PersistentTargetMappings: TARGET_INFORMATION_CLASS = 4i32;
287 pub const PortalGroups: TARGET_INFORMATION_CLASS = 3i32;
288 pub const ProtocolType: TARGET_INFORMATION_CLASS = 0i32;
289 pub const SCSI_IOCTL_DATA_BIDIRECTIONAL: u32 = 3u32;
290 pub const SCSI_IOCTL_DATA_IN: u32 = 1u32;
291 pub const SCSI_IOCTL_DATA_OUT: u32 = 0u32;
292 pub const SCSI_IOCTL_DATA_UNSPECIFIED: u32 = 2u32;
293 pub const STORAGE_DIAGNOSTIC_STATUS_BUFFER_TOO_SMALL: u32 = 1u32;
294 pub const STORAGE_DIAGNOSTIC_STATUS_INVALID_PARAMETER: u32 = 3u32;
295 pub const STORAGE_DIAGNOSTIC_STATUS_INVALID_SIGNATURE: u32 = 4u32;
296 pub const STORAGE_DIAGNOSTIC_STATUS_INVALID_TARGET_TYPE: u32 = 5u32;
297 pub const STORAGE_DIAGNOSTIC_STATUS_MORE_DATA: u32 = 6u32;
298 pub const STORAGE_DIAGNOSTIC_STATUS_SUCCESS: u32 = 0u32;
299 pub const STORAGE_DIAGNOSTIC_STATUS_UNSUPPORTED_VERSION: u32 = 2u32;
300 pub const STORAGE_FIRMWARE_ACTIVATE_STRUCTURE_VERSION: u32 = 1u32;
301 pub const STORAGE_FIRMWARE_DOWNLOAD_STRUCTURE_VERSION: u32 = 1u32;
302 pub const STORAGE_FIRMWARE_DOWNLOAD_STRUCTURE_VERSION_V2: u32 = 2u32;
303 pub const STORAGE_FIRMWARE_INFO_INVALID_SLOT: u32 = 255u32;
304 pub const STORAGE_FIRMWARE_INFO_STRUCTURE_VERSION: u32 = 1u32;
305 pub const STORAGE_FIRMWARE_INFO_STRUCTURE_VERSION_V2: u32 = 2u32;
306 pub const STORAGE_FIRMWARE_SLOT_INFO_V2_REVISION_LENGTH: u32 = 16u32;
307 pub const ScsiRawInterfaceGuid: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x53f56309_b6bf_11d0_94f2_00a0c91efb8b);
308 pub const TargetAlias: TARGET_INFORMATION_CLASS = 1i32;
309 pub const TargetFlags: TARGET_INFORMATION_CLASS = 6i32;
310 pub const WmiScsiAddressGuid: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x53f5630f_b6bf_11d0_94f2_00a0c91efb8b);
311 pub type IKE_AUTHENTICATION_METHOD = i32;
312 pub type ISCSI_AUTH_TYPES = i32;
313 pub type ISCSI_DIGEST_TYPES = i32;
314 pub type MP_STORAGE_DIAGNOSTIC_LEVEL = i32;
315 pub type MP_STORAGE_DIAGNOSTIC_TARGET_TYPE = i32;
316 pub type NVCACHE_STATUS = i32;
317 pub type NVCACHE_TYPE = i32;
318 pub type NV_SEP_WRITE_CACHE_TYPE = i32;
319 pub type TARGETPROTOCOLTYPE = i32;
320 pub type TARGET_INFORMATION_CLASS = i32;
321 #[repr(C)]
322 pub struct ATA_PASS_THROUGH_DIRECT {
323 pub Length: u16,
324 pub AtaFlags: u16,
325 pub PathId: u8,
326 pub TargetId: u8,
327 pub Lun: u8,
328 pub ReservedAsUchar: u8,
329 pub DataTransferLength: u32,
330 pub TimeOutValue: u32,
331 pub ReservedAsUlong: u32,
332 pub DataBuffer: *mut ::core::ffi::c_void,
333 pub PreviousTaskFile: [u8; 8],
334 pub CurrentTaskFile: [u8; 8],
335 }
336 impl ::core::marker::Copy for ATA_PASS_THROUGH_DIRECT {}
337 impl ::core::clone::Clone for ATA_PASS_THROUGH_DIRECT {
338 fn clone(&self) -> Self {
339 *self
340 }
341 }
342 #[repr(C)]
343 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
344 pub struct ATA_PASS_THROUGH_DIRECT32 {
345 pub Length: u16,
346 pub AtaFlags: u16,
347 pub PathId: u8,
348 pub TargetId: u8,
349 pub Lun: u8,
350 pub ReservedAsUchar: u8,
351 pub DataTransferLength: u32,
352 pub TimeOutValue: u32,
353 pub ReservedAsUlong: u32,
354 pub DataBuffer: *mut ::core::ffi::c_void,
355 pub PreviousTaskFile: [u8; 8],
356 pub CurrentTaskFile: [u8; 8],
357 }
358 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
359 impl ::core::marker::Copy for ATA_PASS_THROUGH_DIRECT32 {}
360 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
361 impl ::core::clone::Clone for ATA_PASS_THROUGH_DIRECT32 {
362 fn clone(&self) -> Self {
363 *self
364 }
365 }
366 #[repr(C)]
367 pub struct ATA_PASS_THROUGH_EX {
368 pub Length: u16,
369 pub AtaFlags: u16,
370 pub PathId: u8,
371 pub TargetId: u8,
372 pub Lun: u8,
373 pub ReservedAsUchar: u8,
374 pub DataTransferLength: u32,
375 pub TimeOutValue: u32,
376 pub ReservedAsUlong: u32,
377 pub DataBufferOffset: usize,
378 pub PreviousTaskFile: [u8; 8],
379 pub CurrentTaskFile: [u8; 8],
380 }
381 impl ::core::marker::Copy for ATA_PASS_THROUGH_EX {}
382 impl ::core::clone::Clone for ATA_PASS_THROUGH_EX {
383 fn clone(&self) -> Self {
384 *self
385 }
386 }
387 #[repr(C)]
388 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
389 pub struct ATA_PASS_THROUGH_EX32 {
390 pub Length: u16,
391 pub AtaFlags: u16,
392 pub PathId: u8,
393 pub TargetId: u8,
394 pub Lun: u8,
395 pub ReservedAsUchar: u8,
396 pub DataTransferLength: u32,
397 pub TimeOutValue: u32,
398 pub ReservedAsUlong: u32,
399 pub DataBufferOffset: u32,
400 pub PreviousTaskFile: [u8; 8],
401 pub CurrentTaskFile: [u8; 8],
402 }
403 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
404 impl ::core::marker::Copy for ATA_PASS_THROUGH_EX32 {}
405 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
406 impl ::core::clone::Clone for ATA_PASS_THROUGH_EX32 {
407 fn clone(&self) -> Self {
408 *self
409 }
410 }
411 #[repr(C)]
412 pub struct DSM_NOTIFICATION_REQUEST_BLOCK {
413 pub Size: u32,
414 pub Version: u32,
415 pub NotifyFlags: u32,
416 pub DataSetProfile: u32,
417 pub Reserved: [u32; 3],
418 pub DataSetRangesCount: u32,
419 pub DataSetRanges: [MP_DEVICE_DATA_SET_RANGE; 1],
420 }
421 impl ::core::marker::Copy for DSM_NOTIFICATION_REQUEST_BLOCK {}
422 impl ::core::clone::Clone for DSM_NOTIFICATION_REQUEST_BLOCK {
423 fn clone(&self) -> Self {
424 *self
425 }
426 }
427 #[repr(C)]
428 pub struct DUMP_DRIVER {
429 pub DumpDriverList: *mut ::core::ffi::c_void,
430 pub DriverName: [u16; 15],
431 pub BaseName: [u16; 15],
432 }
433 impl ::core::marker::Copy for DUMP_DRIVER {}
434 impl ::core::clone::Clone for DUMP_DRIVER {
435 fn clone(&self) -> Self {
436 *self
437 }
438 }
439 #[repr(C)]
440 pub struct DUMP_DRIVER_EX {
441 pub DumpDriverList: *mut ::core::ffi::c_void,
442 pub DriverName: [u16; 15],
443 pub BaseName: [u16; 15],
444 pub DriverFullPath: NTSCSI_UNICODE_STRING,
445 }
446 impl ::core::marker::Copy for DUMP_DRIVER_EX {}
447 impl ::core::clone::Clone for DUMP_DRIVER_EX {
448 fn clone(&self) -> Self {
449 *self
450 }
451 }
452 #[repr(C)]
453 #[doc = "Required features: `\"Win32_Foundation\"`"]
454 #[cfg(feature = "Win32_Foundation")]
455 pub struct DUMP_POINTERS {
456 pub AdapterObject: *mut _ADAPTER_OBJECT,
457 pub MappedRegisterBase: *mut ::core::ffi::c_void,
458 pub DumpData: *mut ::core::ffi::c_void,
459 pub CommonBufferVa: *mut ::core::ffi::c_void,
460 pub CommonBufferPa: i64,
461 pub CommonBufferSize: u32,
462 pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN,
463 pub UseDiskDump: super::super::Foundation::BOOLEAN,
464 pub Spare1: [u8; 2],
465 pub DeviceObject: *mut ::core::ffi::c_void,
466 }
467 #[cfg(feature = "Win32_Foundation")]
468 impl ::core::marker::Copy for DUMP_POINTERS {}
469 #[cfg(feature = "Win32_Foundation")]
470 impl ::core::clone::Clone for DUMP_POINTERS {
471 fn clone(&self) -> Self {
472 *self
473 }
474 }
475 #[repr(C)]
476 #[doc = "Required features: `\"Win32_Foundation\"`"]
477 #[cfg(feature = "Win32_Foundation")]
478 pub struct DUMP_POINTERS_EX {
479 pub Header: DUMP_POINTERS_VERSION,
480 pub DumpData: *mut ::core::ffi::c_void,
481 pub CommonBufferVa: *mut ::core::ffi::c_void,
482 pub CommonBufferSize: u32,
483 pub AllocateCommonBuffers: super::super::Foundation::BOOLEAN,
484 pub DeviceObject: *mut ::core::ffi::c_void,
485 pub DriverList: *mut ::core::ffi::c_void,
486 pub dwPortFlags: u32,
487 pub MaxDeviceDumpSectionSize: u32,
488 pub MaxDeviceDumpLevel: u32,
489 pub MaxTransferSize: u32,
490 pub AdapterObject: *mut ::core::ffi::c_void,
491 pub MappedRegisterBase: *mut ::core::ffi::c_void,
492 pub DeviceReady: *mut super::super::Foundation::BOOLEAN,
493 pub DumpDevicePowerOn: PDUMP_DEVICE_POWERON_ROUTINE,
494 pub DumpDevicePowerOnContext: *mut ::core::ffi::c_void,
495 }
496 #[cfg(feature = "Win32_Foundation")]
497 impl ::core::marker::Copy for DUMP_POINTERS_EX {}
498 #[cfg(feature = "Win32_Foundation")]
499 impl ::core::clone::Clone for DUMP_POINTERS_EX {
500 fn clone(&self) -> Self {
501 *self
502 }
503 }
504 #[repr(C)]
505 pub struct DUMP_POINTERS_VERSION {
506 pub Version: u32,
507 pub Size: u32,
508 }
509 impl ::core::marker::Copy for DUMP_POINTERS_VERSION {}
510 impl ::core::clone::Clone for DUMP_POINTERS_VERSION {
511 fn clone(&self) -> Self {
512 *self
513 }
514 }
515 #[repr(C)]
516 pub struct FIRMWARE_REQUEST_BLOCK {
517 pub Version: u32,
518 pub Size: u32,
519 pub Function: u32,
520 pub Flags: u32,
521 pub DataBufferOffset: u32,
522 pub DataBufferLength: u32,
523 }
524 impl ::core::marker::Copy for FIRMWARE_REQUEST_BLOCK {}
525 impl ::core::clone::Clone for FIRMWARE_REQUEST_BLOCK {
526 fn clone(&self) -> Self {
527 *self
528 }
529 }
530 #[repr(C)]
531 pub struct HYBRID_DEMOTE_BY_SIZE {
532 pub Version: u32,
533 pub Size: u32,
534 pub SourcePriority: u8,
535 pub TargetPriority: u8,
536 pub Reserved0: u16,
537 pub Reserved1: u32,
538 pub LbaCount: u64,
539 }
540 impl ::core::marker::Copy for HYBRID_DEMOTE_BY_SIZE {}
541 impl ::core::clone::Clone for HYBRID_DEMOTE_BY_SIZE {
542 fn clone(&self) -> Self {
543 *self
544 }
545 }
546 #[repr(C)]
547 pub struct HYBRID_DIRTY_THRESHOLDS {
548 pub Version: u32,
549 pub Size: u32,
550 pub DirtyLowThreshold: u32,
551 pub DirtyHighThreshold: u32,
552 }
553 impl ::core::marker::Copy for HYBRID_DIRTY_THRESHOLDS {}
554 impl ::core::clone::Clone for HYBRID_DIRTY_THRESHOLDS {
555 fn clone(&self) -> Self {
556 *self
557 }
558 }
559 #[repr(C)]
560 #[doc = "Required features: `\"Win32_Foundation\"`"]
561 #[cfg(feature = "Win32_Foundation")]
562 pub struct HYBRID_INFORMATION {
563 pub Version: u32,
564 pub Size: u32,
565 pub HybridSupported: super::super::Foundation::BOOLEAN,
566 pub Status: NVCACHE_STATUS,
567 pub CacheTypeEffective: NVCACHE_TYPE,
568 pub CacheTypeDefault: NVCACHE_TYPE,
569 pub FractionBase: u32,
570 pub CacheSize: u64,
571 pub Attributes: HYBRID_INFORMATION_0,
572 pub Priorities: HYBRID_INFORMATION_1,
573 }
574 #[cfg(feature = "Win32_Foundation")]
575 impl ::core::marker::Copy for HYBRID_INFORMATION {}
576 #[cfg(feature = "Win32_Foundation")]
577 impl ::core::clone::Clone for HYBRID_INFORMATION {
578 fn clone(&self) -> Self {
579 *self
580 }
581 }
582 #[repr(C)]
583 #[doc = "Required features: `\"Win32_Foundation\"`"]
584 #[cfg(feature = "Win32_Foundation")]
585 pub struct HYBRID_INFORMATION_0 {
586 pub _bitfield: u32,
587 }
588 #[cfg(feature = "Win32_Foundation")]
589 impl ::core::marker::Copy for HYBRID_INFORMATION_0 {}
590 #[cfg(feature = "Win32_Foundation")]
591 impl ::core::clone::Clone for HYBRID_INFORMATION_0 {
592 fn clone(&self) -> Self {
593 *self
594 }
595 }
596 #[repr(C)]
597 #[doc = "Required features: `\"Win32_Foundation\"`"]
598 #[cfg(feature = "Win32_Foundation")]
599 pub struct HYBRID_INFORMATION_1 {
600 pub PriorityLevelCount: u8,
601 pub MaxPriorityBehavior: super::super::Foundation::BOOLEAN,
602 pub OptimalWriteGranularity: u8,
603 pub Reserved: u8,
604 pub DirtyThresholdLow: u32,
605 pub DirtyThresholdHigh: u32,
606 pub SupportedCommands: HYBRID_INFORMATION_1_0,
607 pub Priority: [NVCACHE_PRIORITY_LEVEL_DESCRIPTOR; 1],
608 }
609 #[cfg(feature = "Win32_Foundation")]
610 impl ::core::marker::Copy for HYBRID_INFORMATION_1 {}
611 #[cfg(feature = "Win32_Foundation")]
612 impl ::core::clone::Clone for HYBRID_INFORMATION_1 {
613 fn clone(&self) -> Self {
614 *self
615 }
616 }
617 #[repr(C)]
618 #[doc = "Required features: `\"Win32_Foundation\"`"]
619 #[cfg(feature = "Win32_Foundation")]
620 pub struct HYBRID_INFORMATION_1_0 {
621 pub _bitfield: u32,
622 pub MaxEvictCommands: u32,
623 pub MaxLbaRangeCountForEvict: u32,
624 pub MaxLbaRangeCountForChangeLba: u32,
625 }
626 #[cfg(feature = "Win32_Foundation")]
627 impl ::core::marker::Copy for HYBRID_INFORMATION_1_0 {}
628 #[cfg(feature = "Win32_Foundation")]
629 impl ::core::clone::Clone for HYBRID_INFORMATION_1_0 {
630 fn clone(&self) -> Self {
631 *self
632 }
633 }
634 #[repr(C)]
635 pub struct HYBRID_REQUEST_BLOCK {
636 pub Version: u32,
637 pub Size: u32,
638 pub Function: u32,
639 pub Flags: u32,
640 pub DataBufferOffset: u32,
641 pub DataBufferLength: u32,
642 }
643 impl ::core::marker::Copy for HYBRID_REQUEST_BLOCK {}
644 impl ::core::clone::Clone for HYBRID_REQUEST_BLOCK {
645 fn clone(&self) -> Self {
646 *self
647 }
648 }
649 #[repr(C)]
650 pub struct IDE_IO_CONTROL {
651 pub HeaderLength: u32,
652 pub Signature: [u8; 8],
653 pub Timeout: u32,
654 pub ControlCode: u32,
655 pub ReturnStatus: u32,
656 pub DataLength: u32,
657 }
658 impl ::core::marker::Copy for IDE_IO_CONTROL {}
659 impl ::core::clone::Clone for IDE_IO_CONTROL {
660 fn clone(&self) -> Self {
661 *self
662 }
663 }
664 #[repr(C)]
665 pub struct IKE_AUTHENTICATION_INFORMATION {
666 pub AuthMethod: IKE_AUTHENTICATION_METHOD,
667 pub Anonymous: IKE_AUTHENTICATION_INFORMATION_0,
668 }
669 impl ::core::marker::Copy for IKE_AUTHENTICATION_INFORMATION {}
670 impl ::core::clone::Clone for IKE_AUTHENTICATION_INFORMATION {
671 fn clone(&self) -> Self {
672 *self
673 }
674 }
675 #[repr(C)]
676 pub union IKE_AUTHENTICATION_INFORMATION_0 {
677 pub PsKey: IKE_AUTHENTICATION_PRESHARED_KEY,
678 }
679 impl ::core::marker::Copy for IKE_AUTHENTICATION_INFORMATION_0 {}
680 impl ::core::clone::Clone for IKE_AUTHENTICATION_INFORMATION_0 {
681 fn clone(&self) -> Self {
682 *self
683 }
684 }
685 #[repr(C)]
686 pub struct IKE_AUTHENTICATION_PRESHARED_KEY {
687 pub SecurityFlags: u64,
688 pub IdType: u8,
689 pub IdLengthInBytes: u32,
690 pub Id: *mut u8,
691 pub KeyLengthInBytes: u32,
692 pub Key: *mut u8,
693 }
694 impl ::core::marker::Copy for IKE_AUTHENTICATION_PRESHARED_KEY {}
695 impl ::core::clone::Clone for IKE_AUTHENTICATION_PRESHARED_KEY {
696 fn clone(&self) -> Self {
697 *self
698 }
699 }
700 #[repr(C)]
701 #[doc = "Required features: `\"Win32_Foundation\"`"]
702 #[cfg(feature = "Win32_Foundation")]
703 pub struct IO_SCSI_CAPABILITIES {
704 pub Length: u32,
705 pub MaximumTransferLength: u32,
706 pub MaximumPhysicalPages: u32,
707 pub SupportedAsynchronousEvents: u32,
708 pub AlignmentMask: u32,
709 pub TaggedQueuing: super::super::Foundation::BOOLEAN,
710 pub AdapterScansDown: super::super::Foundation::BOOLEAN,
711 pub AdapterUsesPio: super::super::Foundation::BOOLEAN,
712 }
713 #[cfg(feature = "Win32_Foundation")]
714 impl ::core::marker::Copy for IO_SCSI_CAPABILITIES {}
715 #[cfg(feature = "Win32_Foundation")]
716 impl ::core::clone::Clone for IO_SCSI_CAPABILITIES {
717 fn clone(&self) -> Self {
718 *self
719 }
720 }
721 #[repr(C)]
722 pub struct ISCSI_CONNECTION_INFOA {
723 pub ConnectionId: ISCSI_UNIQUE_SESSION_ID,
724 pub InitiatorAddress: ::windows_sys::core::PSTR,
725 pub TargetAddress: ::windows_sys::core::PSTR,
726 pub InitiatorSocket: u16,
727 pub TargetSocket: u16,
728 pub CID: [u8; 2],
729 }
730 impl ::core::marker::Copy for ISCSI_CONNECTION_INFOA {}
731 impl ::core::clone::Clone for ISCSI_CONNECTION_INFOA {
732 fn clone(&self) -> Self {
733 *self
734 }
735 }
736 #[repr(C)]
737 pub struct ISCSI_CONNECTION_INFOW {
738 pub ConnectionId: ISCSI_UNIQUE_SESSION_ID,
739 pub InitiatorAddress: ::windows_sys::core::PWSTR,
740 pub TargetAddress: ::windows_sys::core::PWSTR,
741 pub InitiatorSocket: u16,
742 pub TargetSocket: u16,
743 pub CID: [u8; 2],
744 }
745 impl ::core::marker::Copy for ISCSI_CONNECTION_INFOW {}
746 impl ::core::clone::Clone for ISCSI_CONNECTION_INFOW {
747 fn clone(&self) -> Self {
748 *self
749 }
750 }
751 #[repr(C)]
752 pub struct ISCSI_CONNECTION_INFO_EX {
753 pub ConnectionId: ISCSI_UNIQUE_SESSION_ID,
754 pub State: u8,
755 pub Protocol: u8,
756 pub HeaderDigest: u8,
757 pub DataDigest: u8,
758 pub MaxRecvDataSegmentLength: u32,
759 pub AuthType: ISCSI_AUTH_TYPES,
760 pub EstimatedThroughput: u64,
761 pub MaxDatagramSize: u32,
762 }
763 impl ::core::marker::Copy for ISCSI_CONNECTION_INFO_EX {}
764 impl ::core::clone::Clone for ISCSI_CONNECTION_INFO_EX {
765 fn clone(&self) -> Self {
766 *self
767 }
768 }
769 #[repr(C)]
770 #[doc = "Required features: `\"Win32_System_Ioctl\"`"]
771 #[cfg(feature = "Win32_System_Ioctl")]
772 pub struct ISCSI_DEVICE_ON_SESSIONA {
773 pub InitiatorName: [u8; 256],
774 pub TargetName: [u8; 224],
775 pub ScsiAddress: SCSI_ADDRESS,
776 pub DeviceInterfaceType: ::windows_sys::core::GUID,
777 pub DeviceInterfaceName: [u8; 260],
778 pub LegacyName: [u8; 260],
779 pub StorageDeviceNumber: super::super::System::Ioctl::STORAGE_DEVICE_NUMBER,
780 pub DeviceInstance: u32,
781 }
782 #[cfg(feature = "Win32_System_Ioctl")]
783 impl ::core::marker::Copy for ISCSI_DEVICE_ON_SESSIONA {}
784 #[cfg(feature = "Win32_System_Ioctl")]
785 impl ::core::clone::Clone for ISCSI_DEVICE_ON_SESSIONA {
786 fn clone(&self) -> Self {
787 *self
788 }
789 }
790 #[repr(C)]
791 #[doc = "Required features: `\"Win32_System_Ioctl\"`"]
792 #[cfg(feature = "Win32_System_Ioctl")]
793 pub struct ISCSI_DEVICE_ON_SESSIONW {
794 pub InitiatorName: [u16; 256],
795 pub TargetName: [u16; 224],
796 pub ScsiAddress: SCSI_ADDRESS,
797 pub DeviceInterfaceType: ::windows_sys::core::GUID,
798 pub DeviceInterfaceName: [u16; 260],
799 pub LegacyName: [u16; 260],
800 pub StorageDeviceNumber: super::super::System::Ioctl::STORAGE_DEVICE_NUMBER,
801 pub DeviceInstance: u32,
802 }
803 #[cfg(feature = "Win32_System_Ioctl")]
804 impl ::core::marker::Copy for ISCSI_DEVICE_ON_SESSIONW {}
805 #[cfg(feature = "Win32_System_Ioctl")]
806 impl ::core::clone::Clone for ISCSI_DEVICE_ON_SESSIONW {
807 fn clone(&self) -> Self {
808 *self
809 }
810 }
811 #[repr(C)]
812 pub struct ISCSI_LOGIN_OPTIONS {
813 pub Version: u32,
814 pub InformationSpecified: u32,
815 pub LoginFlags: u32,
816 pub AuthType: ISCSI_AUTH_TYPES,
817 pub HeaderDigest: ISCSI_DIGEST_TYPES,
818 pub DataDigest: ISCSI_DIGEST_TYPES,
819 pub MaximumConnections: u32,
820 pub DefaultTime2Wait: u32,
821 pub DefaultTime2Retain: u32,
822 pub UsernameLength: u32,
823 pub PasswordLength: u32,
824 pub Username: *mut u8,
825 pub Password: *mut u8,
826 }
827 impl ::core::marker::Copy for ISCSI_LOGIN_OPTIONS {}
828 impl ::core::clone::Clone for ISCSI_LOGIN_OPTIONS {
829 fn clone(&self) -> Self {
830 *self
831 }
832 }
833 #[repr(C)]
834 pub struct ISCSI_SESSION_INFOA {
835 pub SessionId: ISCSI_UNIQUE_SESSION_ID,
836 pub InitiatorName: ::windows_sys::core::PSTR,
837 pub TargetNodeName: ::windows_sys::core::PSTR,
838 pub TargetName: ::windows_sys::core::PSTR,
839 pub ISID: [u8; 6],
840 pub TSID: [u8; 2],
841 pub ConnectionCount: u32,
842 pub Connections: *mut ISCSI_CONNECTION_INFOA,
843 }
844 impl ::core::marker::Copy for ISCSI_SESSION_INFOA {}
845 impl ::core::clone::Clone for ISCSI_SESSION_INFOA {
846 fn clone(&self) -> Self {
847 *self
848 }
849 }
850 #[repr(C)]
851 pub struct ISCSI_SESSION_INFOW {
852 pub SessionId: ISCSI_UNIQUE_SESSION_ID,
853 pub InitiatorName: ::windows_sys::core::PWSTR,
854 pub TargetNodeName: ::windows_sys::core::PWSTR,
855 pub TargetName: ::windows_sys::core::PWSTR,
856 pub ISID: [u8; 6],
857 pub TSID: [u8; 2],
858 pub ConnectionCount: u32,
859 pub Connections: *mut ISCSI_CONNECTION_INFOW,
860 }
861 impl ::core::marker::Copy for ISCSI_SESSION_INFOW {}
862 impl ::core::clone::Clone for ISCSI_SESSION_INFOW {
863 fn clone(&self) -> Self {
864 *self
865 }
866 }
867 #[repr(C)]
868 #[doc = "Required features: `\"Win32_Foundation\"`"]
869 #[cfg(feature = "Win32_Foundation")]
870 pub struct ISCSI_SESSION_INFO_EX {
871 pub SessionId: ISCSI_UNIQUE_SESSION_ID,
872 pub InitialR2t: super::super::Foundation::BOOLEAN,
873 pub ImmediateData: super::super::Foundation::BOOLEAN,
874 pub Type: u8,
875 pub DataSequenceInOrder: super::super::Foundation::BOOLEAN,
876 pub DataPduInOrder: super::super::Foundation::BOOLEAN,
877 pub ErrorRecoveryLevel: u8,
878 pub MaxOutstandingR2t: u32,
879 pub FirstBurstLength: u32,
880 pub MaxBurstLength: u32,
881 pub MaximumConnections: u32,
882 pub ConnectionCount: u32,
883 pub Connections: *mut ISCSI_CONNECTION_INFO_EX,
884 }
885 #[cfg(feature = "Win32_Foundation")]
886 impl ::core::marker::Copy for ISCSI_SESSION_INFO_EX {}
887 #[cfg(feature = "Win32_Foundation")]
888 impl ::core::clone::Clone for ISCSI_SESSION_INFO_EX {
889 fn clone(&self) -> Self {
890 *self
891 }
892 }
893 #[repr(C)]
894 pub struct ISCSI_TARGET_MAPPINGA {
895 pub InitiatorName: [u8; 256],
896 pub TargetName: [u8; 224],
897 pub OSDeviceName: [u8; 260],
898 pub SessionId: ISCSI_UNIQUE_SESSION_ID,
899 pub OSBusNumber: u32,
900 pub OSTargetNumber: u32,
901 pub LUNCount: u32,
902 pub LUNList: *mut SCSI_LUN_LIST,
903 }
904 impl ::core::marker::Copy for ISCSI_TARGET_MAPPINGA {}
905 impl ::core::clone::Clone for ISCSI_TARGET_MAPPINGA {
906 fn clone(&self) -> Self {
907 *self
908 }
909 }
910 #[repr(C)]
911 pub struct ISCSI_TARGET_MAPPINGW {
912 pub InitiatorName: [u16; 256],
913 pub TargetName: [u16; 224],
914 pub OSDeviceName: [u16; 260],
915 pub SessionId: ISCSI_UNIQUE_SESSION_ID,
916 pub OSBusNumber: u32,
917 pub OSTargetNumber: u32,
918 pub LUNCount: u32,
919 pub LUNList: *mut SCSI_LUN_LIST,
920 }
921 impl ::core::marker::Copy for ISCSI_TARGET_MAPPINGW {}
922 impl ::core::clone::Clone for ISCSI_TARGET_MAPPINGW {
923 fn clone(&self) -> Self {
924 *self
925 }
926 }
927 #[repr(C)]
928 pub struct ISCSI_TARGET_PORTALA {
929 pub SymbolicName: [u8; 256],
930 pub Address: [u8; 256],
931 pub Socket: u16,
932 }
933 impl ::core::marker::Copy for ISCSI_TARGET_PORTALA {}
934 impl ::core::clone::Clone for ISCSI_TARGET_PORTALA {
935 fn clone(&self) -> Self {
936 *self
937 }
938 }
939 #[repr(C)]
940 pub struct ISCSI_TARGET_PORTALW {
941 pub SymbolicName: [u16; 256],
942 pub Address: [u16; 256],
943 pub Socket: u16,
944 }
945 impl ::core::marker::Copy for ISCSI_TARGET_PORTALW {}
946 impl ::core::clone::Clone for ISCSI_TARGET_PORTALW {
947 fn clone(&self) -> Self {
948 *self
949 }
950 }
951 #[repr(C)]
952 pub struct ISCSI_TARGET_PORTAL_GROUPA {
953 pub Count: u32,
954 pub Portals: [ISCSI_TARGET_PORTALA; 1],
955 }
956 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_GROUPA {}
957 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_GROUPA {
958 fn clone(&self) -> Self {
959 *self
960 }
961 }
962 #[repr(C)]
963 pub struct ISCSI_TARGET_PORTAL_GROUPW {
964 pub Count: u32,
965 pub Portals: [ISCSI_TARGET_PORTALW; 1],
966 }
967 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_GROUPW {}
968 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_GROUPW {
969 fn clone(&self) -> Self {
970 *self
971 }
972 }
973 #[repr(C)]
974 pub struct ISCSI_TARGET_PORTAL_INFOA {
975 pub InitiatorName: [u8; 256],
976 pub InitiatorPortNumber: u32,
977 pub SymbolicName: [u8; 256],
978 pub Address: [u8; 256],
979 pub Socket: u16,
980 }
981 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_INFOA {}
982 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_INFOA {
983 fn clone(&self) -> Self {
984 *self
985 }
986 }
987 #[repr(C)]
988 pub struct ISCSI_TARGET_PORTAL_INFOW {
989 pub InitiatorName: [u16; 256],
990 pub InitiatorPortNumber: u32,
991 pub SymbolicName: [u16; 256],
992 pub Address: [u16; 256],
993 pub Socket: u16,
994 }
995 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_INFOW {}
996 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_INFOW {
997 fn clone(&self) -> Self {
998 *self
999 }
1000 }
1001 #[repr(C)]
1002 pub struct ISCSI_TARGET_PORTAL_INFO_EXA {
1003 pub InitiatorName: [u8; 256],
1004 pub InitiatorPortNumber: u32,
1005 pub SymbolicName: [u8; 256],
1006 pub Address: [u8; 256],
1007 pub Socket: u16,
1008 pub SecurityFlags: u64,
1009 pub LoginOptions: ISCSI_LOGIN_OPTIONS,
1010 }
1011 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_INFO_EXA {}
1012 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_INFO_EXA {
1013 fn clone(&self) -> Self {
1014 *self
1015 }
1016 }
1017 #[repr(C)]
1018 pub struct ISCSI_TARGET_PORTAL_INFO_EXW {
1019 pub InitiatorName: [u16; 256],
1020 pub InitiatorPortNumber: u32,
1021 pub SymbolicName: [u16; 256],
1022 pub Address: [u16; 256],
1023 pub Socket: u16,
1024 pub SecurityFlags: u64,
1025 pub LoginOptions: ISCSI_LOGIN_OPTIONS,
1026 }
1027 impl ::core::marker::Copy for ISCSI_TARGET_PORTAL_INFO_EXW {}
1028 impl ::core::clone::Clone for ISCSI_TARGET_PORTAL_INFO_EXW {
1029 fn clone(&self) -> Self {
1030 *self
1031 }
1032 }
1033 #[repr(C)]
1034 pub struct ISCSI_UNIQUE_SESSION_ID {
1035 pub AdapterUnique: u64,
1036 pub AdapterSpecific: u64,
1037 }
1038 impl ::core::marker::Copy for ISCSI_UNIQUE_SESSION_ID {}
1039 impl ::core::clone::Clone for ISCSI_UNIQUE_SESSION_ID {
1040 fn clone(&self) -> Self {
1041 *self
1042 }
1043 }
1044 #[repr(C)]
1045 pub struct ISCSI_VERSION_INFO {
1046 pub MajorVersion: u32,
1047 pub MinorVersion: u32,
1048 pub BuildNumber: u32,
1049 }
1050 impl ::core::marker::Copy for ISCSI_VERSION_INFO {}
1051 impl ::core::clone::Clone for ISCSI_VERSION_INFO {
1052 fn clone(&self) -> Self {
1053 *self
1054 }
1055 }
1056 #[repr(C)]
1057 pub struct MPIO_PASS_THROUGH_PATH {
1058 pub PassThrough: SCSI_PASS_THROUGH,
1059 pub Version: u32,
1060 pub Length: u16,
1061 pub Flags: u8,
1062 pub PortNumber: u8,
1063 pub MpioPathId: u64,
1064 }
1065 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH {}
1066 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH {
1067 fn clone(&self) -> Self {
1068 *self
1069 }
1070 }
1071 #[repr(C)]
1072 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1073 pub struct MPIO_PASS_THROUGH_PATH32 {
1074 pub PassThrough: SCSI_PASS_THROUGH32,
1075 pub Version: u32,
1076 pub Length: u16,
1077 pub Flags: u8,
1078 pub PortNumber: u8,
1079 pub MpioPathId: u64,
1080 }
1081 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1082 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH32 {}
1083 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1084 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH32 {
1085 fn clone(&self) -> Self {
1086 *self
1087 }
1088 }
1089 #[repr(C)]
1090 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1091 pub struct MPIO_PASS_THROUGH_PATH32_EX {
1092 pub PassThroughOffset: u32,
1093 pub Version: u32,
1094 pub Length: u16,
1095 pub Flags: u8,
1096 pub PortNumber: u8,
1097 pub MpioPathId: u64,
1098 }
1099 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1100 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH32_EX {}
1101 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1102 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH32_EX {
1103 fn clone(&self) -> Self {
1104 *self
1105 }
1106 }
1107 #[repr(C)]
1108 pub struct MPIO_PASS_THROUGH_PATH_DIRECT {
1109 pub PassThrough: SCSI_PASS_THROUGH_DIRECT,
1110 pub Version: u32,
1111 pub Length: u16,
1112 pub Flags: u8,
1113 pub PortNumber: u8,
1114 pub MpioPathId: u64,
1115 }
1116 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH_DIRECT {}
1117 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH_DIRECT {
1118 fn clone(&self) -> Self {
1119 *self
1120 }
1121 }
1122 #[repr(C)]
1123 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1124 pub struct MPIO_PASS_THROUGH_PATH_DIRECT32 {
1125 pub PassThrough: SCSI_PASS_THROUGH_DIRECT32,
1126 pub Version: u32,
1127 pub Length: u16,
1128 pub Flags: u8,
1129 pub PortNumber: u8,
1130 pub MpioPathId: u64,
1131 }
1132 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1133 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH_DIRECT32 {}
1134 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1135 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH_DIRECT32 {
1136 fn clone(&self) -> Self {
1137 *self
1138 }
1139 }
1140 #[repr(C)]
1141 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1142 pub struct MPIO_PASS_THROUGH_PATH_DIRECT32_EX {
1143 pub PassThroughOffset: u32,
1144 pub Version: u32,
1145 pub Length: u16,
1146 pub Flags: u8,
1147 pub PortNumber: u8,
1148 pub MpioPathId: u64,
1149 }
1150 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1151 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH_DIRECT32_EX {}
1152 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1153 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH_DIRECT32_EX {
1154 fn clone(&self) -> Self {
1155 *self
1156 }
1157 }
1158 #[repr(C)]
1159 pub struct MPIO_PASS_THROUGH_PATH_DIRECT_EX {
1160 pub PassThroughOffset: u32,
1161 pub Version: u32,
1162 pub Length: u16,
1163 pub Flags: u8,
1164 pub PortNumber: u8,
1165 pub MpioPathId: u64,
1166 }
1167 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH_DIRECT_EX {}
1168 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH_DIRECT_EX {
1169 fn clone(&self) -> Self {
1170 *self
1171 }
1172 }
1173 #[repr(C)]
1174 pub struct MPIO_PASS_THROUGH_PATH_EX {
1175 pub PassThroughOffset: u32,
1176 pub Version: u32,
1177 pub Length: u16,
1178 pub Flags: u8,
1179 pub PortNumber: u8,
1180 pub MpioPathId: u64,
1181 }
1182 impl ::core::marker::Copy for MPIO_PASS_THROUGH_PATH_EX {}
1183 impl ::core::clone::Clone for MPIO_PASS_THROUGH_PATH_EX {
1184 fn clone(&self) -> Self {
1185 *self
1186 }
1187 }
1188 #[repr(C)]
1189 pub struct MP_DEVICE_DATA_SET_RANGE {
1190 pub StartingOffset: i64,
1191 pub LengthInBytes: u64,
1192 }
1193 impl ::core::marker::Copy for MP_DEVICE_DATA_SET_RANGE {}
1194 impl ::core::clone::Clone for MP_DEVICE_DATA_SET_RANGE {
1195 fn clone(&self) -> Self {
1196 *self
1197 }
1198 }
1199 #[repr(C)]
1200 pub struct NTSCSI_UNICODE_STRING {
1201 pub Length: u16,
1202 pub MaximumLength: u16,
1203 pub Buffer: ::windows_sys::core::PWSTR,
1204 }
1205 impl ::core::marker::Copy for NTSCSI_UNICODE_STRING {}
1206 impl ::core::clone::Clone for NTSCSI_UNICODE_STRING {
1207 fn clone(&self) -> Self {
1208 *self
1209 }
1210 }
1211 #[repr(C)]
1212 pub struct NVCACHE_HINT_PAYLOAD {
1213 pub Command: u8,
1214 pub Feature7_0: u8,
1215 pub Feature15_8: u8,
1216 pub Count15_8: u8,
1217 pub LBA7_0: u8,
1218 pub LBA15_8: u8,
1219 pub LBA23_16: u8,
1220 pub LBA31_24: u8,
1221 pub LBA39_32: u8,
1222 pub LBA47_40: u8,
1223 pub Auxiliary7_0: u8,
1224 pub Auxiliary23_16: u8,
1225 pub Reserved: [u8; 4],
1226 }
1227 impl ::core::marker::Copy for NVCACHE_HINT_PAYLOAD {}
1228 impl ::core::clone::Clone for NVCACHE_HINT_PAYLOAD {
1229 fn clone(&self) -> Self {
1230 *self
1231 }
1232 }
1233 #[repr(C)]
1234 pub struct NVCACHE_PRIORITY_LEVEL_DESCRIPTOR {
1235 pub PriorityLevel: u8,
1236 pub Reserved0: [u8; 3],
1237 pub ConsumedNVMSizeFraction: u32,
1238 pub ConsumedMappingResourcesFraction: u32,
1239 pub ConsumedNVMSizeForDirtyDataFraction: u32,
1240 pub ConsumedMappingResourcesForDirtyDataFraction: u32,
1241 pub Reserved1: u32,
1242 }
1243 impl ::core::marker::Copy for NVCACHE_PRIORITY_LEVEL_DESCRIPTOR {}
1244 impl ::core::clone::Clone for NVCACHE_PRIORITY_LEVEL_DESCRIPTOR {
1245 fn clone(&self) -> Self {
1246 *self
1247 }
1248 }
1249 #[repr(C)]
1250 pub struct NVCACHE_REQUEST_BLOCK {
1251 pub NRBSize: u32,
1252 pub Function: u16,
1253 pub NRBFlags: u32,
1254 pub NRBStatus: u32,
1255 pub Count: u32,
1256 pub LBA: u64,
1257 pub DataBufSize: u32,
1258 pub NVCacheStatus: u32,
1259 pub NVCacheSubStatus: u32,
1260 }
1261 impl ::core::marker::Copy for NVCACHE_REQUEST_BLOCK {}
1262 impl ::core::clone::Clone for NVCACHE_REQUEST_BLOCK {
1263 fn clone(&self) -> Self {
1264 *self
1265 }
1266 }
1267 #[repr(C)]
1268 pub struct NV_FEATURE_PARAMETER {
1269 pub NVPowerModeEnabled: u16,
1270 pub NVParameterReserv1: u16,
1271 pub NVCmdEnabled: u16,
1272 pub NVParameterReserv2: u16,
1273 pub NVPowerModeVer: u16,
1274 pub NVCmdVer: u16,
1275 pub NVSize: u32,
1276 pub NVReadSpeed: u16,
1277 pub NVWrtSpeed: u16,
1278 pub DeviceSpinUpTime: u32,
1279 }
1280 impl ::core::marker::Copy for NV_FEATURE_PARAMETER {}
1281 impl ::core::clone::Clone for NV_FEATURE_PARAMETER {
1282 fn clone(&self) -> Self {
1283 *self
1284 }
1285 }
1286 #[repr(C)]
1287 pub struct NV_SEP_CACHE_PARAMETER {
1288 pub Version: u32,
1289 pub Size: u32,
1290 pub Flags: NV_SEP_CACHE_PARAMETER_0,
1291 pub WriteCacheType: u8,
1292 pub WriteCacheTypeEffective: u8,
1293 pub ParameterReserve1: [u8; 3],
1294 }
1295 impl ::core::marker::Copy for NV_SEP_CACHE_PARAMETER {}
1296 impl ::core::clone::Clone for NV_SEP_CACHE_PARAMETER {
1297 fn clone(&self) -> Self {
1298 *self
1299 }
1300 }
1301 #[repr(C)]
1302 pub union NV_SEP_CACHE_PARAMETER_0 {
1303 pub CacheFlags: NV_SEP_CACHE_PARAMETER_0_0,
1304 pub CacheFlagsSet: u8,
1305 }
1306 impl ::core::marker::Copy for NV_SEP_CACHE_PARAMETER_0 {}
1307 impl ::core::clone::Clone for NV_SEP_CACHE_PARAMETER_0 {
1308 fn clone(&self) -> Self {
1309 *self
1310 }
1311 }
1312 #[repr(C)]
1313 pub struct NV_SEP_CACHE_PARAMETER_0_0 {
1314 pub _bitfield: u8,
1315 }
1316 impl ::core::marker::Copy for NV_SEP_CACHE_PARAMETER_0_0 {}
1317 impl ::core::clone::Clone for NV_SEP_CACHE_PARAMETER_0_0 {
1318 fn clone(&self) -> Self {
1319 *self
1320 }
1321 }
1322 #[repr(C)]
1323 #[doc = "Required features: `\"Win32_Foundation\"`"]
1324 #[cfg(feature = "Win32_Foundation")]
1325 pub struct PERSISTENT_ISCSI_LOGIN_INFOA {
1326 pub TargetName: [u8; 224],
1327 pub IsInformationalSession: super::super::Foundation::BOOLEAN,
1328 pub InitiatorInstance: [u8; 256],
1329 pub InitiatorPortNumber: u32,
1330 pub TargetPortal: ISCSI_TARGET_PORTALA,
1331 pub SecurityFlags: u64,
1332 pub Mappings: *mut ISCSI_TARGET_MAPPINGA,
1333 pub LoginOptions: ISCSI_LOGIN_OPTIONS,
1334 }
1335 #[cfg(feature = "Win32_Foundation")]
1336 impl ::core::marker::Copy for PERSISTENT_ISCSI_LOGIN_INFOA {}
1337 #[cfg(feature = "Win32_Foundation")]
1338 impl ::core::clone::Clone for PERSISTENT_ISCSI_LOGIN_INFOA {
1339 fn clone(&self) -> Self {
1340 *self
1341 }
1342 }
1343 #[repr(C)]
1344 #[doc = "Required features: `\"Win32_Foundation\"`"]
1345 #[cfg(feature = "Win32_Foundation")]
1346 pub struct PERSISTENT_ISCSI_LOGIN_INFOW {
1347 pub TargetName: [u16; 224],
1348 pub IsInformationalSession: super::super::Foundation::BOOLEAN,
1349 pub InitiatorInstance: [u16; 256],
1350 pub InitiatorPortNumber: u32,
1351 pub TargetPortal: ISCSI_TARGET_PORTALW,
1352 pub SecurityFlags: u64,
1353 pub Mappings: *mut ISCSI_TARGET_MAPPINGW,
1354 pub LoginOptions: ISCSI_LOGIN_OPTIONS,
1355 }
1356 #[cfg(feature = "Win32_Foundation")]
1357 impl ::core::marker::Copy for PERSISTENT_ISCSI_LOGIN_INFOW {}
1358 #[cfg(feature = "Win32_Foundation")]
1359 impl ::core::clone::Clone for PERSISTENT_ISCSI_LOGIN_INFOW {
1360 fn clone(&self) -> Self {
1361 *self
1362 }
1363 }
1364 #[repr(C)]
1365 pub struct SCSI_ADAPTER_BUS_INFO {
1366 pub NumberOfBuses: u8,
1367 pub BusData: [SCSI_BUS_DATA; 1],
1368 }
1369 impl ::core::marker::Copy for SCSI_ADAPTER_BUS_INFO {}
1370 impl ::core::clone::Clone for SCSI_ADAPTER_BUS_INFO {
1371 fn clone(&self) -> Self {
1372 *self
1373 }
1374 }
1375 #[repr(C)]
1376 pub struct SCSI_ADDRESS {
1377 pub Length: u32,
1378 pub PortNumber: u8,
1379 pub PathId: u8,
1380 pub TargetId: u8,
1381 pub Lun: u8,
1382 }
1383 impl ::core::marker::Copy for SCSI_ADDRESS {}
1384 impl ::core::clone::Clone for SCSI_ADDRESS {
1385 fn clone(&self) -> Self {
1386 *self
1387 }
1388 }
1389 #[repr(C)]
1390 pub struct SCSI_BUS_DATA {
1391 pub NumberOfLogicalUnits: u8,
1392 pub InitiatorBusId: u8,
1393 pub InquiryDataOffset: u32,
1394 }
1395 impl ::core::marker::Copy for SCSI_BUS_DATA {}
1396 impl ::core::clone::Clone for SCSI_BUS_DATA {
1397 fn clone(&self) -> Self {
1398 *self
1399 }
1400 }
1401 #[repr(C)]
1402 #[doc = "Required features: `\"Win32_Foundation\"`"]
1403 #[cfg(feature = "Win32_Foundation")]
1404 pub struct SCSI_INQUIRY_DATA {
1405 pub PathId: u8,
1406 pub TargetId: u8,
1407 pub Lun: u8,
1408 pub DeviceClaimed: super::super::Foundation::BOOLEAN,
1409 pub InquiryDataLength: u32,
1410 pub NextInquiryDataOffset: u32,
1411 pub InquiryData: [u8; 1],
1412 }
1413 #[cfg(feature = "Win32_Foundation")]
1414 impl ::core::marker::Copy for SCSI_INQUIRY_DATA {}
1415 #[cfg(feature = "Win32_Foundation")]
1416 impl ::core::clone::Clone for SCSI_INQUIRY_DATA {
1417 fn clone(&self) -> Self {
1418 *self
1419 }
1420 }
1421 #[repr(C)]
1422 pub struct SCSI_LUN_LIST {
1423 pub OSLUN: u32,
1424 pub TargetLUN: u64,
1425 }
1426 impl ::core::marker::Copy for SCSI_LUN_LIST {}
1427 impl ::core::clone::Clone for SCSI_LUN_LIST {
1428 fn clone(&self) -> Self {
1429 *self
1430 }
1431 }
1432 #[repr(C)]
1433 pub struct SCSI_PASS_THROUGH {
1434 pub Length: u16,
1435 pub ScsiStatus: u8,
1436 pub PathId: u8,
1437 pub TargetId: u8,
1438 pub Lun: u8,
1439 pub CdbLength: u8,
1440 pub SenseInfoLength: u8,
1441 pub DataIn: u8,
1442 pub DataTransferLength: u32,
1443 pub TimeOutValue: u32,
1444 pub DataBufferOffset: usize,
1445 pub SenseInfoOffset: u32,
1446 pub Cdb: [u8; 16],
1447 }
1448 impl ::core::marker::Copy for SCSI_PASS_THROUGH {}
1449 impl ::core::clone::Clone for SCSI_PASS_THROUGH {
1450 fn clone(&self) -> Self {
1451 *self
1452 }
1453 }
1454 #[repr(C)]
1455 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1456 pub struct SCSI_PASS_THROUGH32 {
1457 pub Length: u16,
1458 pub ScsiStatus: u8,
1459 pub PathId: u8,
1460 pub TargetId: u8,
1461 pub Lun: u8,
1462 pub CdbLength: u8,
1463 pub SenseInfoLength: u8,
1464 pub DataIn: u8,
1465 pub DataTransferLength: u32,
1466 pub TimeOutValue: u32,
1467 pub DataBufferOffset: u32,
1468 pub SenseInfoOffset: u32,
1469 pub Cdb: [u8; 16],
1470 }
1471 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1472 impl ::core::marker::Copy for SCSI_PASS_THROUGH32 {}
1473 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1474 impl ::core::clone::Clone for SCSI_PASS_THROUGH32 {
1475 fn clone(&self) -> Self {
1476 *self
1477 }
1478 }
1479 #[repr(C)]
1480 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1481 pub struct SCSI_PASS_THROUGH32_EX {
1482 pub Version: u32,
1483 pub Length: u32,
1484 pub CdbLength: u32,
1485 pub StorAddressLength: u32,
1486 pub ScsiStatus: u8,
1487 pub SenseInfoLength: u8,
1488 pub DataDirection: u8,
1489 pub Reserved: u8,
1490 pub TimeOutValue: u32,
1491 pub StorAddressOffset: u32,
1492 pub SenseInfoOffset: u32,
1493 pub DataOutTransferLength: u32,
1494 pub DataInTransferLength: u32,
1495 pub DataOutBufferOffset: u32,
1496 pub DataInBufferOffset: u32,
1497 pub Cdb: [u8; 1],
1498 }
1499 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1500 impl ::core::marker::Copy for SCSI_PASS_THROUGH32_EX {}
1501 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1502 impl ::core::clone::Clone for SCSI_PASS_THROUGH32_EX {
1503 fn clone(&self) -> Self {
1504 *self
1505 }
1506 }
1507 #[repr(C)]
1508 pub struct SCSI_PASS_THROUGH_DIRECT {
1509 pub Length: u16,
1510 pub ScsiStatus: u8,
1511 pub PathId: u8,
1512 pub TargetId: u8,
1513 pub Lun: u8,
1514 pub CdbLength: u8,
1515 pub SenseInfoLength: u8,
1516 pub DataIn: u8,
1517 pub DataTransferLength: u32,
1518 pub TimeOutValue: u32,
1519 pub DataBuffer: *mut ::core::ffi::c_void,
1520 pub SenseInfoOffset: u32,
1521 pub Cdb: [u8; 16],
1522 }
1523 impl ::core::marker::Copy for SCSI_PASS_THROUGH_DIRECT {}
1524 impl ::core::clone::Clone for SCSI_PASS_THROUGH_DIRECT {
1525 fn clone(&self) -> Self {
1526 *self
1527 }
1528 }
1529 #[repr(C)]
1530 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1531 pub struct SCSI_PASS_THROUGH_DIRECT32 {
1532 pub Length: u16,
1533 pub ScsiStatus: u8,
1534 pub PathId: u8,
1535 pub TargetId: u8,
1536 pub Lun: u8,
1537 pub CdbLength: u8,
1538 pub SenseInfoLength: u8,
1539 pub DataIn: u8,
1540 pub DataTransferLength: u32,
1541 pub TimeOutValue: u32,
1542 pub DataBuffer: *mut ::core::ffi::c_void,
1543 pub SenseInfoOffset: u32,
1544 pub Cdb: [u8; 16],
1545 }
1546 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1547 impl ::core::marker::Copy for SCSI_PASS_THROUGH_DIRECT32 {}
1548 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1549 impl ::core::clone::Clone for SCSI_PASS_THROUGH_DIRECT32 {
1550 fn clone(&self) -> Self {
1551 *self
1552 }
1553 }
1554 #[repr(C)]
1555 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1556 pub struct SCSI_PASS_THROUGH_DIRECT32_EX {
1557 pub Version: u32,
1558 pub Length: u32,
1559 pub CdbLength: u32,
1560 pub StorAddressLength: u32,
1561 pub ScsiStatus: u8,
1562 pub SenseInfoLength: u8,
1563 pub DataDirection: u8,
1564 pub Reserved: u8,
1565 pub TimeOutValue: u32,
1566 pub StorAddressOffset: u32,
1567 pub SenseInfoOffset: u32,
1568 pub DataOutTransferLength: u32,
1569 pub DataInTransferLength: u32,
1570 pub DataOutBuffer: *mut ::core::ffi::c_void,
1571 pub DataInBuffer: *mut ::core::ffi::c_void,
1572 pub Cdb: [u8; 1],
1573 }
1574 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1575 impl ::core::marker::Copy for SCSI_PASS_THROUGH_DIRECT32_EX {}
1576 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
1577 impl ::core::clone::Clone for SCSI_PASS_THROUGH_DIRECT32_EX {
1578 fn clone(&self) -> Self {
1579 *self
1580 }
1581 }
1582 #[repr(C)]
1583 pub struct SCSI_PASS_THROUGH_DIRECT_EX {
1584 pub Version: u32,
1585 pub Length: u32,
1586 pub CdbLength: u32,
1587 pub StorAddressLength: u32,
1588 pub ScsiStatus: u8,
1589 pub SenseInfoLength: u8,
1590 pub DataDirection: u8,
1591 pub Reserved: u8,
1592 pub TimeOutValue: u32,
1593 pub StorAddressOffset: u32,
1594 pub SenseInfoOffset: u32,
1595 pub DataOutTransferLength: u32,
1596 pub DataInTransferLength: u32,
1597 pub DataOutBuffer: *mut ::core::ffi::c_void,
1598 pub DataInBuffer: *mut ::core::ffi::c_void,
1599 pub Cdb: [u8; 1],
1600 }
1601 impl ::core::marker::Copy for SCSI_PASS_THROUGH_DIRECT_EX {}
1602 impl ::core::clone::Clone for SCSI_PASS_THROUGH_DIRECT_EX {
1603 fn clone(&self) -> Self {
1604 *self
1605 }
1606 }
1607 #[repr(C)]
1608 pub struct SCSI_PASS_THROUGH_EX {
1609 pub Version: u32,
1610 pub Length: u32,
1611 pub CdbLength: u32,
1612 pub StorAddressLength: u32,
1613 pub ScsiStatus: u8,
1614 pub SenseInfoLength: u8,
1615 pub DataDirection: u8,
1616 pub Reserved: u8,
1617 pub TimeOutValue: u32,
1618 pub StorAddressOffset: u32,
1619 pub SenseInfoOffset: u32,
1620 pub DataOutTransferLength: u32,
1621 pub DataInTransferLength: u32,
1622 pub DataOutBufferOffset: usize,
1623 pub DataInBufferOffset: usize,
1624 pub Cdb: [u8; 1],
1625 }
1626 impl ::core::marker::Copy for SCSI_PASS_THROUGH_EX {}
1627 impl ::core::clone::Clone for SCSI_PASS_THROUGH_EX {
1628 fn clone(&self) -> Self {
1629 *self
1630 }
1631 }
1632 #[repr(C)]
1633 pub struct SRB_IO_CONTROL {
1634 pub HeaderLength: u32,
1635 pub Signature: [u8; 8],
1636 pub Timeout: u32,
1637 pub ControlCode: u32,
1638 pub ReturnCode: u32,
1639 pub Length: u32,
1640 }
1641 impl ::core::marker::Copy for SRB_IO_CONTROL {}
1642 impl ::core::clone::Clone for SRB_IO_CONTROL {
1643 fn clone(&self) -> Self {
1644 *self
1645 }
1646 }
1647 #[repr(C)]
1648 pub struct STORAGE_DIAGNOSTIC_MP_REQUEST {
1649 pub Version: u32,
1650 pub Size: u32,
1651 pub TargetType: MP_STORAGE_DIAGNOSTIC_TARGET_TYPE,
1652 pub Level: MP_STORAGE_DIAGNOSTIC_LEVEL,
1653 pub ProviderId: ::windows_sys::core::GUID,
1654 pub BufferSize: u32,
1655 pub Reserved: u32,
1656 pub DataBuffer: [u8; 1],
1657 }
1658 impl ::core::marker::Copy for STORAGE_DIAGNOSTIC_MP_REQUEST {}
1659 impl ::core::clone::Clone for STORAGE_DIAGNOSTIC_MP_REQUEST {
1660 fn clone(&self) -> Self {
1661 *self
1662 }
1663 }
1664 #[repr(C)]
1665 pub struct STORAGE_ENDURANCE_DATA_DESCRIPTOR {
1666 pub Version: u32,
1667 pub Size: u32,
1668 pub EnduranceInfo: STORAGE_ENDURANCE_INFO,
1669 }
1670 impl ::core::marker::Copy for STORAGE_ENDURANCE_DATA_DESCRIPTOR {}
1671 impl ::core::clone::Clone for STORAGE_ENDURANCE_DATA_DESCRIPTOR {
1672 fn clone(&self) -> Self {
1673 *self
1674 }
1675 }
1676 #[repr(C)]
1677 pub struct STORAGE_ENDURANCE_INFO {
1678 pub ValidFields: u32,
1679 pub GroupId: u32,
1680 pub Flags: STORAGE_ENDURANCE_INFO_0,
1681 pub LifePercentage: u32,
1682 pub BytesReadCount: [u8; 16],
1683 pub ByteWriteCount: [u8; 16],
1684 }
1685 impl ::core::marker::Copy for STORAGE_ENDURANCE_INFO {}
1686 impl ::core::clone::Clone for STORAGE_ENDURANCE_INFO {
1687 fn clone(&self) -> Self {
1688 *self
1689 }
1690 }
1691 #[repr(C)]
1692 pub struct STORAGE_ENDURANCE_INFO_0 {
1693 pub _bitfield: u32,
1694 }
1695 impl ::core::marker::Copy for STORAGE_ENDURANCE_INFO_0 {}
1696 impl ::core::clone::Clone for STORAGE_ENDURANCE_INFO_0 {
1697 fn clone(&self) -> Self {
1698 *self
1699 }
1700 }
1701 #[repr(C)]
1702 pub struct STORAGE_FIRMWARE_ACTIVATE {
1703 pub Version: u32,
1704 pub Size: u32,
1705 pub SlotToActivate: u8,
1706 pub Reserved0: [u8; 3],
1707 }
1708 impl ::core::marker::Copy for STORAGE_FIRMWARE_ACTIVATE {}
1709 impl ::core::clone::Clone for STORAGE_FIRMWARE_ACTIVATE {
1710 fn clone(&self) -> Self {
1711 *self
1712 }
1713 }
1714 #[repr(C)]
1715 pub struct STORAGE_FIRMWARE_DOWNLOAD {
1716 pub Version: u32,
1717 pub Size: u32,
1718 pub Offset: u64,
1719 pub BufferSize: u64,
1720 pub ImageBuffer: [u8; 1],
1721 }
1722 impl ::core::marker::Copy for STORAGE_FIRMWARE_DOWNLOAD {}
1723 impl ::core::clone::Clone for STORAGE_FIRMWARE_DOWNLOAD {
1724 fn clone(&self) -> Self {
1725 *self
1726 }
1727 }
1728 #[repr(C)]
1729 pub struct STORAGE_FIRMWARE_DOWNLOAD_V2 {
1730 pub Version: u32,
1731 pub Size: u32,
1732 pub Offset: u64,
1733 pub BufferSize: u64,
1734 pub Slot: u8,
1735 pub Reserved: [u8; 3],
1736 pub ImageSize: u32,
1737 pub ImageBuffer: [u8; 1],
1738 }
1739 impl ::core::marker::Copy for STORAGE_FIRMWARE_DOWNLOAD_V2 {}
1740 impl ::core::clone::Clone for STORAGE_FIRMWARE_DOWNLOAD_V2 {
1741 fn clone(&self) -> Self {
1742 *self
1743 }
1744 }
1745 #[repr(C)]
1746 #[doc = "Required features: `\"Win32_Foundation\"`"]
1747 #[cfg(feature = "Win32_Foundation")]
1748 pub struct STORAGE_FIRMWARE_INFO {
1749 pub Version: u32,
1750 pub Size: u32,
1751 pub UpgradeSupport: super::super::Foundation::BOOLEAN,
1752 pub SlotCount: u8,
1753 pub ActiveSlot: u8,
1754 pub PendingActivateSlot: u8,
1755 pub Reserved: u32,
1756 pub Slot: [STORAGE_FIRMWARE_SLOT_INFO; 1],
1757 }
1758 #[cfg(feature = "Win32_Foundation")]
1759 impl ::core::marker::Copy for STORAGE_FIRMWARE_INFO {}
1760 #[cfg(feature = "Win32_Foundation")]
1761 impl ::core::clone::Clone for STORAGE_FIRMWARE_INFO {
1762 fn clone(&self) -> Self {
1763 *self
1764 }
1765 }
1766 #[repr(C)]
1767 #[doc = "Required features: `\"Win32_Foundation\"`"]
1768 #[cfg(feature = "Win32_Foundation")]
1769 pub struct STORAGE_FIRMWARE_INFO_V2 {
1770 pub Version: u32,
1771 pub Size: u32,
1772 pub UpgradeSupport: super::super::Foundation::BOOLEAN,
1773 pub SlotCount: u8,
1774 pub ActiveSlot: u8,
1775 pub PendingActivateSlot: u8,
1776 pub FirmwareShared: super::super::Foundation::BOOLEAN,
1777 pub Reserved: [u8; 3],
1778 pub ImagePayloadAlignment: u32,
1779 pub ImagePayloadMaxSize: u32,
1780 pub Slot: [STORAGE_FIRMWARE_SLOT_INFO_V2; 1],
1781 }
1782 #[cfg(feature = "Win32_Foundation")]
1783 impl ::core::marker::Copy for STORAGE_FIRMWARE_INFO_V2 {}
1784 #[cfg(feature = "Win32_Foundation")]
1785 impl ::core::clone::Clone for STORAGE_FIRMWARE_INFO_V2 {
1786 fn clone(&self) -> Self {
1787 *self
1788 }
1789 }
1790 #[repr(C)]
1791 #[doc = "Required features: `\"Win32_Foundation\"`"]
1792 #[cfg(feature = "Win32_Foundation")]
1793 pub struct STORAGE_FIRMWARE_SLOT_INFO {
1794 pub SlotNumber: u8,
1795 pub ReadOnly: super::super::Foundation::BOOLEAN,
1796 pub Reserved: [u8; 6],
1797 pub Revision: STORAGE_FIRMWARE_SLOT_INFO_0,
1798 }
1799 #[cfg(feature = "Win32_Foundation")]
1800 impl ::core::marker::Copy for STORAGE_FIRMWARE_SLOT_INFO {}
1801 #[cfg(feature = "Win32_Foundation")]
1802 impl ::core::clone::Clone for STORAGE_FIRMWARE_SLOT_INFO {
1803 fn clone(&self) -> Self {
1804 *self
1805 }
1806 }
1807 #[repr(C)]
1808 #[doc = "Required features: `\"Win32_Foundation\"`"]
1809 #[cfg(feature = "Win32_Foundation")]
1810 pub union STORAGE_FIRMWARE_SLOT_INFO_0 {
1811 pub Info: [u8; 8],
1812 pub AsUlonglong: u64,
1813 }
1814 #[cfg(feature = "Win32_Foundation")]
1815 impl ::core::marker::Copy for STORAGE_FIRMWARE_SLOT_INFO_0 {}
1816 #[cfg(feature = "Win32_Foundation")]
1817 impl ::core::clone::Clone for STORAGE_FIRMWARE_SLOT_INFO_0 {
1818 fn clone(&self) -> Self {
1819 *self
1820 }
1821 }
1822 #[repr(C)]
1823 #[doc = "Required features: `\"Win32_Foundation\"`"]
1824 #[cfg(feature = "Win32_Foundation")]
1825 pub struct STORAGE_FIRMWARE_SLOT_INFO_V2 {
1826 pub SlotNumber: u8,
1827 pub ReadOnly: super::super::Foundation::BOOLEAN,
1828 pub Reserved: [u8; 6],
1829 pub Revision: [u8; 16],
1830 }
1831 #[cfg(feature = "Win32_Foundation")]
1832 impl ::core::marker::Copy for STORAGE_FIRMWARE_SLOT_INFO_V2 {}
1833 #[cfg(feature = "Win32_Foundation")]
1834 impl ::core::clone::Clone for STORAGE_FIRMWARE_SLOT_INFO_V2 {
1835 fn clone(&self) -> Self {
1836 *self
1837 }
1838 }
1839 pub type _ADAPTER_OBJECT = isize;
1840 pub type PDUMP_DEVICE_POWERON_ROUTINE = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void) -> i32>;