Mercurial > libanimone
comparison include/animone/util/win32.h @ 23:1cfa7d57c022
dep/animone: add experimental accessibility strategy
I also moved most of the functions out of util/win32.cc, because that
file is meant for things that are shared between the different functions,
and currently that is only wide string conversion helpers.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 23:13:55 -0400 |
parents | 27b988a1048c |
children | 60ded877339b |
comparison
equal
deleted
inserted
replaced
22:bc22d57076e3 | 23:1cfa7d57c022 |
---|---|
21 | 21 |
22 std::string ToUtf8String(const std::wstring& string); | 22 std::string ToUtf8String(const std::wstring& string); |
23 std::string ToUtf8String(const UNICODE_STRING& string); | 23 std::string ToUtf8String(const UNICODE_STRING& string); |
24 std::wstring ToWstring(const std::string& string); | 24 std::wstring ToWstring(const std::string& string); |
25 | 25 |
26 std::wstring GetProcessPath(DWORD process_id); | 26 /* XXX can this stuff be moved to fd/win32.cc? */ |
27 std::wstring GetFileNameFromPath(const std::wstring& path); | |
28 std::wstring GetFileNameWithoutExtension(const std::wstring& filename); | |
29 | |
30 bool IsSystemDirectory(const std::string& path); | 27 bool IsSystemDirectory(const std::string& path); |
31 bool IsSystemDirectory(std::wstring path); | 28 bool IsSystemDirectory(std::wstring path); |
32 | 29 |
33 } // namespace animone::internal::win32 | 30 } // namespace animone::internal::win32 |
34 | 31 |