| 29 | |
| 30 | |
| 31 | wchar_t* wstring2wcharAlloc(const std::wstring& str) { |
| 32 | size_t length = str.length(); |
| 33 | wchar_t* copy = new wchar_t[length + 1]; |
| 34 | std::copy(str.c_str(), str.c_str() + length, copy); |
| 35 | copy[length] = L'\0'; |
| 36 | return copy; |
| 37 | } |
| 38 | |
| 39 | uint64_t pointer_to_uint64(PVOID ptr) { |
| 40 | return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(ptr)); |
no outgoing calls
no test coverage detected