comparison include/animone/util/win32.h @ 25:60ded877339b

dep/animone: fix tons of issues for example, the window ID stuff was just... completely wrong. since we're supporting multiple different window systems, it *has* to be a union rather than just a single integer type. HWND is also not a DWORD, it's a pointer(!), so now it's stored as a std::uintptr_t. (this probably breaks things)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 03:03:05 -0400
parents 1cfa7d57c022
children
comparison
equal deleted inserted replaced
24:f1b9adaa41b3 25:60ded877339b
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 /* XXX can this stuff be moved to fd/win32.cc? */
27 bool IsSystemDirectory(const std::string& path);
28 bool IsSystemDirectory(std::wstring path);
29
30 } // namespace animone::internal::win32 26 } // namespace animone::internal::win32
31 27
32 #endif // ANIMONE_ANIMONE_UTIL_WIN32_H_ 28 #endif // ANIMONE_ANIMONE_UTIL_WIN32_H_