Title DLLs at run time: find by name, map on first LoadLibrary
GetModuleHandle* and LoadLibrary* find the title's images and our console modules by file name. LoadLibrary* of a title DLL nothing imports maps, binds and attaches it on the calling thread (a title's own loader DLL may load its backends this way). FreeLibrary never unloads title images. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
754619f30e
commit
d032b8a241
7 files changed
+288
-65
No files matched your search
@@ -38,7 +38,9 @@ pub use resolve::{ImportResolver, Provenance, Resolution};
|
||||
#[cfg(windows)]
|
||||
pub use thunks::{UnimplementedPolicy, unimplemented_call_count};
|
||||
#[cfg(windows)]
|
||||
pub use windows::{BindReport, LoadedImage, MissingImport, WithTitleDlls, load, load_title_dlls};
|
||||
pub use windows::{
|
||||
BindReport, LoadedImage, MissingImport, WithTitleDlls, load, load_title_dll, load_title_dlls,
|
||||
};
|
||||
|
||||
/// `DLL_PROCESS_ATTACH`, for TLS callbacks.
|
||||
pub const DLL_PROCESS_ATTACH: u32 = 1;
|
||||
Reference in new issue
Block a user