diff options
| author | Fuwn <[email protected]> | 2021-08-19 21:52:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-08-19 21:52:32 -0700 |
| commit | 8c5a5838f19f7a78b4cf37f5147215bf25e4e34f (patch) | |
| tree | 6552eda352a49e0e627874941e1f18968f721631 /include | |
| parent | chore(readme): remove tray support item (diff) | |
| download | soyuz-8c5a5838f19f7a78b4cf37f5147215bf25e4e34f.tar.xz soyuz-8c5a5838f19f7a78b4cf37f5147215bf25e4e34f.zip | |
feat(soyuz): log to file
Diffstat (limited to 'include')
| -rw-r--r-- | include/soyuz/library.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/soyuz/library.hh b/include/soyuz/library.hh index ae7ce13..db88870 100644 --- a/include/soyuz/library.hh +++ b/include/soyuz/library.hh @@ -6,6 +6,7 @@ #pragma once +#include <string> #include <Windows.h> #define NT_SUCCESS(status) (status >= 0) @@ -13,9 +14,21 @@ namespace soyuz { +// enum log_level { +// low, // blue +// medium, // orange +// high, // red +// }; + static auto enum_windows_proc(HWND hwnd, LPARAM lparam) -> BOOL; auto find_lunar() -> DWORD; auto delete_handle(DWORD pid) -> int; +auto write_log_file(const std::string &message) -> void; +auto init_log_file() -> void; +auto close_log_file() -> void; +auto exit(int exit_code) -> void; +// https://stackoverflow.com/a/10467633/14452787 +auto current_date_time() -> std::string; } |