diff options
author | Andrzej Janik <[email protected]> | 2021-01-16 22:28:48 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-16 22:28:48 +0100 |
commit | ff8135e8a308e8e3e155e6873989423ccad7a27a (patch) | |
tree | 7b34d0d7b8944c28fd1c3ecbff1af7ca5ef6767b /zluda_redirect | |
parent | 09f679693bec135776380c92409f4693587ff482 (diff) | |
download | ZLUDA-ff8135e8a308e8e3e155e6873989423ccad7a27a.tar.gz ZLUDA-ff8135e8a308e8e3e155e6873989423ccad7a27a.zip |
Add a library for dumping kernels arguments before and after launch (#18)
Diffstat (limited to 'zluda_redirect')
-rw-r--r-- | zluda_redirect/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zluda_redirect/src/lib.rs b/zluda_redirect/src/lib.rs index d0497a3..04b2413 100644 --- a/zluda_redirect/src/lib.rs +++ b/zluda_redirect/src/lib.rs @@ -46,6 +46,12 @@ static mut LOAD_LIBRARY_EX_W: unsafe extern "system" fn( dwFlags: DWORD, ) -> HMODULE = LoadLibraryExW; +#[no_mangle] +#[allow(non_snake_case)] +unsafe extern "system" fn ZludaLoadLibraryW_NoRedirect(lpLibFileName: LPCWSTR) -> HMODULE { + (LOAD_LIBRARY_W)(lpLibFileName) +} + #[allow(non_snake_case)] unsafe extern "system" fn ZludaLoadLibraryA(lpLibFileName: LPCSTR) -> HMODULE { let nvcuda_file_name = if is_nvcuda_dll_utf8(lpLibFileName as *const _) { |