-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pattern scan with regex #9
Conversation
Did you test if that fix the problem with With the current implementation, it keeps failing randomly. (pretty annoying) PS: after extensive testing, the bug come from your |
@codecheck01 I'm sorry for replying late. Thanks for the information. I barely remember that the bug is originally occurring in the |
@pseuxide I should tell you, that I'm not using winapi-rs, but windows-rs instead. But still your |
I of course used to try windows-rs out before. If im not mistaken, it has drawback around type which u can't easily type punning from its exported type like HMODULE to something like usize. (i dont remember clearly tho) Let me know if u get to know why my |
@pseuxide Here is my fn get_module_handle(module_name: PCSTR) -> Result<HINSTANCE, Error> {
let hinstance = unsafe { GetModuleHandleA(module_name) }?;
if hinstance.is_invalid() {
Err(unsafe { GetLastError().into() })
} else {
Ok(hinstance)
}
} |
ughh I have been fullsent on my actual job, but finally somewhat completed internal part. I'll merge this once I make sure all examples work fine. |
@pseuxide, Nice, I just got the notification, is there any bugs, is it safe to use in production? |
Alright, give me a day and a half, u see another pending PR which I need to complete. sorry for making u wait...i was too lazy to write Rust |
@codecheck01 |
background
toy-arms' pattern scanning has been significantly slow, therefore I replaced it with the way uses regex.
progress
external replacement is done so far.
internal is waiting to be done