Debian Codegraph @

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

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FCIAddFile(hfci : *const ::core::ffi::c_void, pszsourcefile : ::windows_sys::core::PCSTR, pszfilename : ::windows_sys::core::PCSTR, fexecute : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS, pfnfcigoi : PFNFCIGETOPENINFO, typecompress : u16) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FCICreate(perf : *const ERF, pfnfcifp : PFNFCIFILEPLACED, pfna : PFNFCIALLOC, pfnf : PFNFCIFREE, pfnopen : PFNFCIOPEN, pfnread : PFNFCIREAD, pfnwrite : PFNFCIWRITE, pfnclose : PFNFCICLOSE, pfnseek : PFNFCISEEK, pfndelete : PFNFCIDELETE, pfnfcigtf : PFNFCIGETTEMPFILE, pccab : *const CCAB, pv : *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FCIDestroy(hfci : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FCIFlushCabinet(hfci : *const ::core::ffi::c_void, fgetnextcab : super::super::Foundation:: BOOL, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FCIFlushFolder(hfci : *const ::core::ffi::c_void, pfnfcignc : PFNFCIGETNEXTCABINET, pfnfcis : PFNFCISTATUS) -> super::super::Foundation:: BOOL);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FDICopy(hfdi : *const ::core::ffi::c_void, pszcabinet : ::windows_sys::core::PCSTR, pszcabpath : ::windows_sys::core::PCSTR, flags : i32, pfnfdin : PFNFDINOTIFY, pfnfdid : PFNFDIDECRYPT, pvuser : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FDICreate(pfnalloc : PFNALLOC, pfnfree : PFNFREE, pfnopen : PFNOPEN, pfnread : PFNREAD, pfnwrite : PFNWRITE, pfnclose : PFNCLOSE, pfnseek : PFNSEEK, cputype : FDICREATE_CPU_TYPE, perf : *mut ERF) -> *mut ::core::ffi::c_void);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FDIDestroy(hfdi : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
17 #[cfg(feature = "Win32_Foundation")]
18 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FDIIsCabinet(hfdi : *const ::core::ffi::c_void, hf : isize, pfdici : *mut FDICABINETINFO) -> super::super::Foundation:: BOOL);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("cabinet.dll" "cdecl" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FDITruncateCabinet(hfdi : *const ::core::ffi::c_void, pszcabinetname : ::windows_sys::core::PCSTR, ifoldertodelete : u16) -> super::super::Foundation:: BOOL);
21 pub const CB_MAX_CABINET_NAME: u32 = 256u32;
22 pub const CB_MAX_CAB_PATH: u32 = 256u32;
23 pub const CB_MAX_DISK: i32 = 2147483647i32;
24 pub const CB_MAX_DISK_NAME: u32 = 256u32;
25 pub const CB_MAX_FILENAME: u32 = 256u32;
26 pub const FCIERR_ALLOC_FAIL: FCIERROR = 3i32;
27 pub const FCIERR_BAD_COMPR_TYPE: FCIERROR = 5i32;
28 pub const FCIERR_CAB_FILE: FCIERROR = 6i32;
29 pub const FCIERR_CAB_FORMAT_LIMIT: FCIERROR = 9i32;
30 pub const FCIERR_MCI_FAIL: FCIERROR = 8i32;
31 pub const FCIERR_NONE: FCIERROR = 0i32;
32 pub const FCIERR_OPEN_SRC: FCIERROR = 1i32;
33 pub const FCIERR_READ_SRC: FCIERROR = 2i32;
34 pub const FCIERR_TEMP_FILE: FCIERROR = 4i32;
35 pub const FCIERR_USER_ABORT: FCIERROR = 7i32;
36 pub const FDIERROR_ALLOC_FAIL: FDIERROR = 5i32;
37 pub const FDIERROR_BAD_COMPR_TYPE: FDIERROR = 6i32;
38 pub const FDIERROR_CABINET_NOT_FOUND: FDIERROR = 1i32;
39 pub const FDIERROR_CORRUPT_CABINET: FDIERROR = 4i32;
40 pub const FDIERROR_EOF: FDIERROR = 12i32;
41 pub const FDIERROR_MDI_FAIL: FDIERROR = 7i32;
42 pub const FDIERROR_NONE: FDIERROR = 0i32;
43 pub const FDIERROR_NOT_A_CABINET: FDIERROR = 2i32;
44 pub const FDIERROR_RESERVE_MISMATCH: FDIERROR = 9i32;
45 pub const FDIERROR_TARGET_FILE: FDIERROR = 8i32;
46 pub const FDIERROR_UNKNOWN_CABINET_VERSION: FDIERROR = 3i32;
47 pub const FDIERROR_USER_ABORT: FDIERROR = 11i32;
48 pub const FDIERROR_WRONG_CABINET: FDIERROR = 10i32;
49 pub const INCLUDED_FCI: u32 = 1u32;
50 pub const INCLUDED_FDI: u32 = 1u32;
51 pub const INCLUDED_TYPES_FCI_FDI: u32 = 1u32;
52 pub const _A_EXEC: u32 = 64u32;
53 pub const _A_NAME_IS_UTF: u32 = 128u32;
54 pub const cpu80286: FDICREATE_CPU_TYPE = 0i32;
55 pub const cpu80386: FDICREATE_CPU_TYPE = 1i32;
56 pub const cpuUNKNOWN: FDICREATE_CPU_TYPE = -1i32;
57 pub const fdidtDECRYPT: FDIDECRYPTTYPE = 2i32;
58 pub const fdidtNEW_CABINET: FDIDECRYPTTYPE = 0i32;
59 pub const fdidtNEW_FOLDER: FDIDECRYPTTYPE = 1i32;
60 pub const fdintCABINET_INFO: FDINOTIFICATIONTYPE = 0i32;
61 pub const fdintCLOSE_FILE_INFO: FDINOTIFICATIONTYPE = 3i32;
62 pub const fdintCOPY_FILE: FDINOTIFICATIONTYPE = 2i32;
63 pub const fdintENUMERATE: FDINOTIFICATIONTYPE = 5i32;
64 pub const fdintNEXT_CABINET: FDINOTIFICATIONTYPE = 4i32;
65 pub const fdintPARTIAL_FILE: FDINOTIFICATIONTYPE = 1i32;
66 pub const statusCabinet: u32 = 2u32;
67 pub const statusFile: u32 = 0u32;
68 pub const statusFolder: u32 = 1u32;
69 pub const tcompBAD: u32 = 15u32;
70 pub const tcompLZX_WINDOW_HI: u32 = 5376u32;
71 pub const tcompLZX_WINDOW_LO: u32 = 3840u32;
72 pub const tcompMASK_LZX_WINDOW: u32 = 7936u32;
73 pub const tcompMASK_QUANTUM_LEVEL: u32 = 240u32;
74 pub const tcompMASK_QUANTUM_MEM: u32 = 7936u32;
75 pub const tcompMASK_RESERVED: u32 = 57344u32;
76 pub const tcompMASK_TYPE: u32 = 15u32;
77 pub const tcompQUANTUM_LEVEL_HI: u32 = 112u32;
78 pub const tcompQUANTUM_LEVEL_LO: u32 = 16u32;
79 pub const tcompQUANTUM_MEM_HI: u32 = 5376u32;
80 pub const tcompQUANTUM_MEM_LO: u32 = 2560u32;
81 pub const tcompSHIFT_LZX_WINDOW: u32 = 8u32;
82 pub const tcompSHIFT_QUANTUM_LEVEL: u32 = 4u32;
83 pub const tcompSHIFT_QUANTUM_MEM: u32 = 8u32;
84 pub const tcompTYPE_LZX: u32 = 3u32;
85 pub const tcompTYPE_MSZIP: u32 = 1u32;
86 pub const tcompTYPE_NONE: u32 = 0u32;
87 pub const tcompTYPE_QUANTUM: u32 = 2u32;
88 pub type FCIERROR = i32;
89 pub type FDICREATE_CPU_TYPE = i32;
90 pub type FDIDECRYPTTYPE = i32;
91 pub type FDIERROR = i32;
92 pub type FDINOTIFICATIONTYPE = i32;
93 #[repr(C)]
94 pub struct CCAB {
95 pub cb: u32,
96 pub cbFolderThresh: u32,
97 pub cbReserveCFHeader: u32,
98 pub cbReserveCFFolder: u32,
99 pub cbReserveCFData: u32,
100 pub iCab: i32,
101 pub iDisk: i32,
102 pub fFailOnIncompressible: i32,
103 pub setID: u16,
104 pub szDisk: [u8; 256],
105 pub szCab: [u8; 256],
106 pub szCabPath: [u8; 256],
107 }
108 impl ::core::marker::Copy for CCAB {}
109 impl ::core::clone::Clone for CCAB {
110 fn clone(&self) -> Self {
111 *self
112 }
113 }
114 #[repr(C)]
115 #[doc = "Required features: `\"Win32_Foundation\"`"]
116 #[cfg(feature = "Win32_Foundation")]
117 pub struct ERF {
118 pub erfOper: i32,
119 pub erfType: i32,
120 pub fError: super::super::Foundation::BOOL,
121 }
122 #[cfg(feature = "Win32_Foundation")]
123 impl ::core::marker::Copy for ERF {}
124 #[cfg(feature = "Win32_Foundation")]
125 impl ::core::clone::Clone for ERF {
126 fn clone(&self) -> Self {
127 *self
128 }
129 }
130 #[repr(C)]
131 #[doc = "Required features: `\"Win32_Foundation\"`"]
132 #[cfg(feature = "Win32_Foundation")]
133 pub struct FDICABINETINFO {
134 pub cbCabinet: i32,
135 pub cFolders: u16,
136 pub cFiles: u16,
137 pub setID: u16,
138 pub iCabinet: u16,
139 pub fReserve: super::super::Foundation::BOOL,
140 pub hasprev: super::super::Foundation::BOOL,
141 pub hasnext: super::super::Foundation::BOOL,
142 }
143 #[cfg(feature = "Win32_Foundation")]
144 impl ::core::marker::Copy for FDICABINETINFO {}
145 #[cfg(feature = "Win32_Foundation")]
146 impl ::core::clone::Clone for FDICABINETINFO {
147 fn clone(&self) -> Self {
148 *self
149 }
150 }
151 #[repr(C)]
152 #[doc = "Required features: `\"Win32_Foundation\"`"]
153 #[cfg(feature = "Win32_Foundation")]
154 pub struct FDIDECRYPT {
155 pub fdidt: FDIDECRYPTTYPE,
156 pub pvUser: *mut ::core::ffi::c_void,
157 pub Anonymous: FDIDECRYPT_0,
158 }
159 #[cfg(feature = "Win32_Foundation")]
160 impl ::core::marker::Copy for FDIDECRYPT {}
161 #[cfg(feature = "Win32_Foundation")]
162 impl ::core::clone::Clone for FDIDECRYPT {
163 fn clone(&self) -> Self {
164 *self
165 }
166 }
167 #[repr(C)]
168 #[doc = "Required features: `\"Win32_Foundation\"`"]
169 #[cfg(feature = "Win32_Foundation")]
170 pub union FDIDECRYPT_0 {
171 pub cabinet: FDIDECRYPT_0_0,
172 pub folder: FDIDECRYPT_0_2,
173 pub decrypt: FDIDECRYPT_0_1,
174 }
175 #[cfg(feature = "Win32_Foundation")]
176 impl ::core::marker::Copy for FDIDECRYPT_0 {}
177 #[cfg(feature = "Win32_Foundation")]
178 impl ::core::clone::Clone for FDIDECRYPT_0 {
179 fn clone(&self) -> Self {
180 *self
181 }
182 }
183 #[repr(C)]
184 #[doc = "Required features: `\"Win32_Foundation\"`"]
185 #[cfg(feature = "Win32_Foundation")]
186 pub struct FDIDECRYPT_0_0 {
187 pub pHeaderReserve: *mut ::core::ffi::c_void,
188 pub cbHeaderReserve: u16,
189 pub setID: u16,
190 pub iCabinet: i32,
191 }
192 #[cfg(feature = "Win32_Foundation")]
193 impl ::core::marker::Copy for FDIDECRYPT_0_0 {}
194 #[cfg(feature = "Win32_Foundation")]
195 impl ::core::clone::Clone for FDIDECRYPT_0_0 {
196 fn clone(&self) -> Self {
197 *self
198 }
199 }
200 #[repr(C)]
201 #[doc = "Required features: `\"Win32_Foundation\"`"]
202 #[cfg(feature = "Win32_Foundation")]
203 pub struct FDIDECRYPT_0_1 {
204 pub pDataReserve: *mut ::core::ffi::c_void,
205 pub cbDataReserve: u16,
206 pub pbData: *mut ::core::ffi::c_void,
207 pub cbData: u16,
208 pub fSplit: super::super::Foundation::BOOL,
209 pub cbPartial: u16,
210 }
211 #[cfg(feature = "Win32_Foundation")]
212 impl ::core::marker::Copy for FDIDECRYPT_0_1 {}
213 #[cfg(feature = "Win32_Foundation")]
214 impl ::core::clone::Clone for FDIDECRYPT_0_1 {
215 fn clone(&self) -> Self {
216 *self
217 }
218 }
219 #[repr(C)]
220 #[doc = "Required features: `\"Win32_Foundation\"`"]
221 #[cfg(feature = "Win32_Foundation")]
222 pub struct FDIDECRYPT_0_2 {
223 pub pFolderReserve: *mut ::core::ffi::c_void,
224 pub cbFolderReserve: u16,
225 pub iFolder: u16,
226 }
227 #[cfg(feature = "Win32_Foundation")]
228 impl ::core::marker::Copy for FDIDECRYPT_0_2 {}
229 #[cfg(feature = "Win32_Foundation")]
230 impl ::core::clone::Clone for FDIDECRYPT_0_2 {
231 fn clone(&self) -> Self {
232 *self
233 }
234 }
235 #[repr(C)]
236 pub struct FDINOTIFICATION {
237 pub cb: i32,
238 pub psz1: ::windows_sys::core::PSTR,
239 pub psz2: ::windows_sys::core::PSTR,
240 pub psz3: ::windows_sys::core::PSTR,
241 pub pv: *mut ::core::ffi::c_void,
242 pub hf: isize,
243 pub date: u16,
244 pub time: u16,
245 pub attribs: u16,
246 pub setID: u16,
247 pub iCabinet: u16,
248 pub iFolder: u16,
249 pub fdie: FDIERROR,
250 }
251 impl ::core::marker::Copy for FDINOTIFICATION {}
252 impl ::core::clone::Clone for FDINOTIFICATION {
253 fn clone(&self) -> Self {
254 *self
255 }
256 }
257 #[repr(C)]
258 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
259 pub struct FDISPILLFILE {
260 pub ach: [u8; 2],
261 pub cbFile: i32,
262 }
263 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
264 impl ::core::marker::Copy for FDISPILLFILE {}
265 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
266 impl ::core::clone::Clone for FDISPILLFILE {
267 fn clone(&self) -> Self {
268 *self
269 }
270 }
271 #[repr(C, packed(1))]
272 #[cfg(target_arch = "x86")]
273 pub struct FDISPILLFILE {
274 pub ach: [u8; 2],
275 pub cbFile: i32,
276 }
277 #[cfg(target_arch = "x86")]
278 impl ::core::marker::Copy for FDISPILLFILE {}
279 #[cfg(target_arch = "x86")]
280 impl ::core::clone::Clone for FDISPILLFILE {
281 fn clone(&self) -> Self {
282 *self
283 }
284 }
285 pub type PFNALLOC = ::core::option::Option<unsafe extern "system" fn(cb: u32) -> *mut ::core::ffi::c_void>;
286 pub type PFNCLOSE = ::core::option::Option<unsafe extern "system" fn(hf: isize) -> i32>;
287 pub type PFNFCIALLOC = ::core::option::Option<unsafe extern "system" fn(cb: u32) -> *mut ::core::ffi::c_void>;
288 pub type PFNFCICLOSE = ::core::option::Option<unsafe extern "system" fn(hf: isize, err: *mut i32, pv: *mut ::core::ffi::c_void) -> i32>;
289 pub type PFNFCIDELETE = ::core::option::Option<unsafe extern "system" fn(pszfile: ::windows_sys::core::PCSTR, err: *mut i32, pv: *mut ::core::ffi::c_void) -> i32>;
290 #[doc = "Required features: `\"Win32_Foundation\"`"]
291 #[cfg(feature = "Win32_Foundation")]
292 pub type PFNFCIFILEPLACED = ::core::option::Option<unsafe extern "system" fn(pccab: *mut CCAB, pszfile: ::windows_sys::core::PCSTR, cbfile: i32, fcontinuation: super::super::Foundation::BOOL, pv: *mut ::core::ffi::c_void) -> i32>;
293 pub type PFNFCIFREE = ::core::option::Option<unsafe extern "system" fn(memory: *mut ::core::ffi::c_void) -> ()>;
294 #[doc = "Required features: `\"Win32_Foundation\"`"]
295 #[cfg(feature = "Win32_Foundation")]
296 pub type PFNFCIGETNEXTCABINET = ::core::option::Option<unsafe extern "system" fn(pccab: *mut CCAB, cbprevcab: u32, pv: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL>;
297 pub type PFNFCIGETOPENINFO = ::core::option::Option<unsafe extern "system" fn(pszname: ::windows_sys::core::PCSTR, pdate: *mut u16, ptime: *mut u16, pattribs: *mut u16, err: *mut i32, pv: *mut ::core::ffi::c_void) -> isize>;
298 #[doc = "Required features: `\"Win32_Foundation\"`"]
299 #[cfg(feature = "Win32_Foundation")]
300 pub type PFNFCIGETTEMPFILE = ::core::option::Option<unsafe extern "system" fn(psztempname: ::windows_sys::core::PSTR, cbtempname: i32, pv: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL>;
301 pub type PFNFCIOPEN = ::core::option::Option<unsafe extern "system" fn(pszfile: ::windows_sys::core::PCSTR, oflag: i32, pmode: i32, err: *mut i32, pv: *mut ::core::ffi::c_void) -> isize>;
302 pub type PFNFCIREAD = ::core::option::Option<unsafe extern "system" fn(hf: isize, memory: *mut ::core::ffi::c_void, cb: u32, err: *mut i32, pv: *mut ::core::ffi::c_void) -> u32>;
303 pub type PFNFCISEEK = ::core::option::Option<unsafe extern "system" fn(hf: isize, dist: i32, seektype: i32, err: *mut i32, pv: *mut ::core::ffi::c_void) -> i32>;
304 pub type PFNFCISTATUS = ::core::option::Option<unsafe extern "system" fn(typestatus: u32, cb1: u32, cb2: u32, pv: *mut ::core::ffi::c_void) -> i32>;
305 pub type PFNFCIWRITE = ::core::option::Option<unsafe extern "system" fn(hf: isize, memory: *mut ::core::ffi::c_void, cb: u32, err: *mut i32, pv: *mut ::core::ffi::c_void) -> u32>;
306 #[doc = "Required features: `\"Win32_Foundation\"`"]
307 #[cfg(feature = "Win32_Foundation")]
308 pub type PFNFDIDECRYPT = ::core::option::Option<unsafe extern "system" fn(pfdid: *mut FDIDECRYPT) -> i32>;
309 pub type PFNFDINOTIFY = ::core::option::Option<unsafe extern "system" fn(fdint: FDINOTIFICATIONTYPE, pfdin: *mut FDINOTIFICATION) -> isize>;
310 pub type PFNFREE = ::core::option::Option<unsafe extern "system" fn(pv: *const ::core::ffi::c_void) -> ()>;
311 pub type PFNOPEN = ::core::option::Option<unsafe extern "system" fn(pszfile: ::windows_sys::core::PCSTR, oflag: i32, pmode: i32) -> isize>;
312 pub type PFNREAD = ::core::option::Option<unsafe extern "system" fn(hf: isize, pv: *mut ::core::ffi::c_void, cb: u32) -> u32>;
313 pub type PFNSEEK = ::core::option::Option<unsafe extern "system" fn(hf: isize, dist: i32, seektype: i32) -> i32>;
314 pub type PFNWRITE = ::core::option::Option<unsafe extern "system" fn(hf: isize, pv: *const ::core::ffi::c_void, cb: u32) -> u32>;