Debian Codegraph @

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

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CloseCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CloseDecompressor(decompressorhandle : isize) -> super::super::Foundation:: BOOL);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Compress(compressorhandle : COMPRESSOR_HANDLE, uncompresseddata : *const ::core::ffi::c_void, uncompresseddatasize : usize, compressedbuffer : *mut ::core::ffi::c_void, compressedbuffersize : usize, compresseddatasize : *mut usize) -> super::super::Foundation:: BOOL);
7 #[cfg(feature = "Win32_Foundation")]
8 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CreateCompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, compressorhandle : *mut COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn CreateDecompressor(algorithm : COMPRESS_ALGORITHM, allocationroutines : *const COMPRESS_ALLOCATION_ROUTINES, decompressorhandle : *mut isize) -> super::super::Foundation:: BOOL);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn Decompress(decompressorhandle : isize, compresseddata : *const ::core::ffi::c_void, compresseddatasize : usize, uncompressedbuffer : *mut ::core::ffi::c_void, uncompressedbuffersize : usize, uncompresseddatasize : *mut usize) -> super::super::Foundation:: BOOL);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn QueryCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut ::core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn QueryDecompressorInformation(decompressorhandle : isize, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *mut ::core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL);
17 #[cfg(feature = "Win32_Foundation")]
18 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ResetCompressor(compressorhandle : COMPRESSOR_HANDLE) -> super::super::Foundation:: BOOL);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ResetDecompressor(decompressorhandle : isize) -> super::super::Foundation:: BOOL);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetCompressorInformation(compressorhandle : COMPRESSOR_HANDLE, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const ::core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL);
23 #[cfg(feature = "Win32_Foundation")]
24 ::windows_targets::link!("cabinet.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetDecompressorInformation(decompressorhandle : isize, compressinformationclass : COMPRESS_INFORMATION_CLASS, compressinformation : *const ::core::ffi::c_void, compressinformationsize : usize) -> super::super::Foundation:: BOOL);
25 pub const COMPRESS_ALGORITHM_INVALID: u32 = 0u32;
26 pub const COMPRESS_ALGORITHM_LZMS: COMPRESS_ALGORITHM = 5u32;
27 pub const COMPRESS_ALGORITHM_MAX: u32 = 6u32;
28 pub const COMPRESS_ALGORITHM_MSZIP: COMPRESS_ALGORITHM = 2u32;
29 pub const COMPRESS_ALGORITHM_NULL: u32 = 1u32;
30 pub const COMPRESS_ALGORITHM_XPRESS: COMPRESS_ALGORITHM = 3u32;
31 pub const COMPRESS_ALGORITHM_XPRESS_HUFF: COMPRESS_ALGORITHM = 4u32;
32 pub const COMPRESS_INFORMATION_CLASS_BLOCK_SIZE: COMPRESS_INFORMATION_CLASS = 1i32;
33 pub const COMPRESS_INFORMATION_CLASS_INVALID: COMPRESS_INFORMATION_CLASS = 0i32;
34 pub const COMPRESS_INFORMATION_CLASS_LEVEL: COMPRESS_INFORMATION_CLASS = 2i32;
35 pub const COMPRESS_RAW: u32 = 536870912u32;
36 pub type COMPRESS_ALGORITHM = u32;
37 pub type COMPRESS_INFORMATION_CLASS = i32;
38 pub type COMPRESSOR_HANDLE = isize;
39 #[repr(C)]
40 pub struct COMPRESS_ALLOCATION_ROUTINES {
41 pub Allocate: PFN_COMPRESS_ALLOCATE,
42 pub Free: PFN_COMPRESS_FREE,
43 pub UserContext: *mut ::core::ffi::c_void,
44 }
45 impl ::core::marker::Copy for COMPRESS_ALLOCATION_ROUTINES {}
46 impl ::core::clone::Clone for COMPRESS_ALLOCATION_ROUTINES {
47 fn clone(&self) -> Self {
48 *self
49 }
50 }
51 pub type PFN_COMPRESS_ALLOCATE = ::core::option::Option<unsafe extern "system" fn(usercontext: *const ::core::ffi::c_void, size: usize) -> *mut ::core::ffi::c_void>;
52 pub type PFN_COMPRESS_FREE = ::core::option::Option<unsafe extern "system" fn(usercontext: *const ::core::ffi::c_void, memory: *const ::core::ffi::c_void) -> ()>;