| 45 | } |
| 46 | static std::wstring environmentVariable(LPCWSTR name) { PATH_BUFFERW(str); GetEnvironmentVariableW(name, str, PATH_BUFFER_SIZE); return str; } |
| 47 | static std::wstring folderPath(int csidl = CSIDL_DESKTOP) { PATH_BUFFERW(str); SHGetFolderPathW(0, csidl, 0, SHGFP_TYPE_CURRENT, str); return str; } |
| 48 | static bool ClipBoardText(LPCWSTR str) { |
| 49 | size_t size = (wcslen(str) + 1) * sizeof(wchar_t); |
| 50 | HANDLE hGlobalMemory = GlobalAlloc(GMEM_MOVEABLE, size); |
nothing calls this directly
no outgoing calls
no test coverage detected