We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fb7f09 commit a6811b4Copy full SHA for a6811b4
project_template/main.cpp
@@ -29,6 +29,9 @@ int load_and_run(LPCTSTR pe_path)
29
// if the loaded PE needs to access resources, you may need to connect it to the PEB:
30
peconv::set_main_module_in_peb((HMODULE)my_pe);
31
32
+ // if needed, you can run TLS callbacks before the Entry Point:
33
+ peconv::run_tls_callbacks(my_pe, v_size);
34
+
35
//calculate the Entry Point of the manually loaded module
36
DWORD ep_rva = peconv::get_entry_point_rva(my_pe);
37
if (!ep_rva) {
0 commit comments