Enum Dll
Source pub enum Dll {
Win32u,
Ntdll,
}
Expand description
Represents different dynamic link libraries (DLLs) that contain system call functions.
Sets the default DLL to be used for system calls.
§Arguments
dll - The Dll variant to use as the new default.
§Example
ⓘuse dinvk::Dll;
Dll::use_dll(Dll::Win32u);
Retrieves the currently selected DLL for system calls.
§Returns
- The currently set DLL as a
Dll enum variant.
§Example
ⓘuse dinvk::Dll;
let dll = Dll::current();
println!("Current DLL: {}", dll);
Returns the function name associated with the selected DLL, if applicable.
§Returns
- A static string slice (
&str) containing the function name or an empty string.
§Example
ⓘuse dinvk::Dll;
let dll = Dll::Win32u;
println!("Function: {}", dll.function_hash());
Performs copy-assignment from
source.
Read more
Formats the Dll variant as its corresponding DLL file name.
§Example
ⓘuse dinvk::Dll;
let dll = Dll::Win32u;
println!("DLL: {}", dll);
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.