This commit is contained in:
nora 2025-02-01 17:06:32 +01:00
parent cec97ff44d
commit 64c30e201d
11 changed files with 4426 additions and 213 deletions

28
test2/ordinal_dll.rs Normal file
View file

@ -0,0 +1,28 @@
#![no_std]
#![crate_type = "cdylib"]
#![windows_subsystem = "console"]
#[panic_handler]
fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
loop {}
}
#[no_mangle]
pub extern "C" fn my_export_ordinal_1() -> u32 {
1
}
#[no_mangle]
pub extern "C" fn my_export_ordinal_2() -> u32 {
2
}
#[no_mangle]
pub extern "C" fn my_export_named() -> u32 {
5
}
#[no_mangle]
pub extern "stdcall" fn _DllMainCRTStartup() -> u32 {
0
}