# superf4-rust basic [superf4](https://github.com/stefansundin/superf4) implementation in Rust ##### alpha: using cli ## Steps to take: 1. get list of all processes running 2. kill chosen process 3. ??? 4. profit ## TODO: - [x] read cli argument input, if none: - [x] read user input after showing processes - [x] get all process ids by process name - [x] kill all processes with ids ## (some) Sources: - 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 - https://github.com/xu-cheng/howlong/issues/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://rust-cli.github.io/book/tutorial/cli-args.html - https://egghead.io/lessons/rust-read-user-input-from-stdin-in-rust - - - - - -