Mercurial > libanimone
comparison include/animone/util/win32.h @ 5:6d6d2b51517b
chore: merge
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Fri, 12 Apr 2024 05:23:45 -0400 |
| parents | aa55bcfb5b79 |
| children | 27b988a1048c |
comparison
equal
deleted
inserted
replaced
| 4:cce3a81b03bf | 5:6d6d2b51517b |
|---|---|
| 1 #ifndef ANIMONE_ANIMONE_UTIL_WIN32_H_ | 1 #ifndef ANIMONE_ANIMONE_UTIL_WIN32_H_ |
| 2 #define ANIMONE_ANIMONE_UTIL_WIN32_H_ | 2 #define ANIMONE_ANIMONE_UTIL_WIN32_H_ |
| 3 | 3 |
| 4 #include <windef.h> | |
| 4 #include <subauth.h> | 5 #include <subauth.h> |
| 5 #include <windows.h> | 6 #include <handleapi.h> |
| 6 | 7 |
| 7 #include <memory> | 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 namespace animone::internal::win32 { | 11 namespace animone::internal::win32 { |
| 20 | 21 |
| 21 std::string ToUtf8String(const std::wstring& string); | 22 std::string ToUtf8String(const std::wstring& string); |
| 22 std::string ToUtf8String(const UNICODE_STRING& string); | 23 std::string ToUtf8String(const UNICODE_STRING& string); |
| 23 std::wstring ToWstring(const std::string& string); | 24 std::wstring ToWstring(const std::string& string); |
| 24 | 25 |
| 26 std::wstring GetProcessPath(DWORD process_id); | |
| 25 std::wstring GetFileNameFromPath(const std::wstring& path); | 27 std::wstring GetFileNameFromPath(const std::wstring& path); |
| 26 std::wstring GetFileNameWithoutExtension(const std::wstring& filename); | 28 std::wstring GetFileNameWithoutExtension(const std::wstring& filename); |
| 27 | 29 |
| 28 bool IsSystemDirectory(const std::string& path); | 30 bool IsSystemDirectory(const std::string& path); |
| 29 bool IsSystemDirectory(std::wstring path); | 31 bool IsSystemDirectory(std::wstring path); |
