basic superf4 implementation in Rust
this was a learning project for fun and it does not work properly. I highly suggest you instead use the above linked original SuperF4 that works great :)
- listen for ctrl + alt + f4
- get id from current top window
- kill process
- ???
- profit
- https://docs.rs/winapi/0.3.8/winapi
- https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess
- https://stackoverflow.com/questions/2443738/c-terminateprocess-function
- https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess
- https://docs.microsoft.com/en-us/windows/win32/procthread/process-security-and-access-rights
- https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types?redirectedfrom=MSDN
- xu-cheng/howlong#3
- https://github.com/Vlad-Shcherbina/howlong/commit/2b7d42796f656155ceec9f8e6f554d184b4c9481
- https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-createtoolhelp32snapshot?redirectedfrom=MSDN
- https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-process32first?redirectedfrom=MSDN
- https://stackoverflow.com/questions/3477097/get-full-running-process-list-visual-c
- https://cpp.hotexamples.com/examples/-/-/Process32First/cpp-process32first-function-examples.html
- https://doc.rust-lang.org/std/mem/fn.size_of.html
- https://users.rust-lang.org/t/indexing-in-raw-pointer/58559
- https://stackoverflow.com/questions/2812760/print-tchar-on-console
- https://stackoverflow.com/questions/69146231/printing-tchar-array-as-unicode-string-rust-winapi
- https://docs.microsoft.com/en-us/windows/win32/api/tlhelp32/nf-tlhelp32-process32firstw
- https://doc.rust-lang.org/std/os/windows/ffi/trait.OsStringExt.html#tymethod.from_wide
- https://github.com/linde12/winapi-testing
- https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms644985(v=vs.85)
- https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-keydown?redirectedfrom=MSDN
- https://github.dev/stefansundin/superf4/blob/master/superf4.c
- https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-callnexthookex