pub enum NtApiSetError {
ApiSetSectionNotFound,
ApiSetSectionOutOfBounds,
EntryNameOutOfBounds {
name_range: Range<usize>,
entry_offset: usize,
actual: usize,
},
HashEntriesOutOfBounds {
range: Range<usize>,
actual: usize,
},
InvalidMapHeaderSize {
expected: usize,
actual: usize,
},
NamespaceEntriesOutOfBounds {
range: Range<usize>,
actual: usize,
},
UnsupportedVersion {
version: u32,
},
ValueEntriesOutOfBounds {
range: Range<usize>,
actual: usize,
},
}
Expand description
Central error type of nt-apiset.
Variants§
ApiSetSectionNotFound
Did not find the “.apiset” section in the PE file
ApiSetSectionOutOfBounds
The “.apiset” section in the PE file references data that is out of bounds
EntryNameOutOfBounds
Tried to read the name at byte range {name_range:?} of the entry at byte {entry_offset}, but the “.apiset” section only has a size of {actual} bytes
Fields
HashEntriesOutOfBounds
Tried to read the apiset hash entries from byte range {range:?}, but the “.apiset” section only has a size of {actual} bytes
Fields
InvalidMapHeaderSize
Tried to read {expected} bytes for the API Set Map header, but only {actual} bytes are left in the slice
Fields
NamespaceEntriesOutOfBounds
Tried to read the apiset namespace entries from byte range {range:?}, but the “.apiset” section only has a size of {actual} bytes
Fields
UnsupportedVersion
The apiset map version ({version}) is unsupported
ValueEntriesOutOfBounds
Tried to read the apiset value entries from byte range {range:?}, but the “.apiset” section only has a size of {actual} bytes
Trait Implementations§
Source§impl Clone for NtApiSetError
impl Clone for NtApiSetError
Source§fn clone(&self) -> NtApiSetError
fn clone(&self) -> NtApiSetError
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NtApiSetError
impl Debug for NtApiSetError
Source§impl Display for NtApiSetError
impl Display for NtApiSetError
Source§impl Error for NtApiSetError
Available on crate feature std
only.
impl Error for NtApiSetError
std
only.