| 182 | private: |
| 183 | template <typename T> |
| 184 | bool load_function(T &function_pointer, const char *function_name) { |
| 185 | function_pointer = reinterpret_cast<T>(GetProcAddress(user32DllHandle, function_name)); |
| 186 | if (function_pointer == nullptr) { |
| 187 | fprintf(stderr, "Failed to load function: %s\n", function_name); |
| 188 | return false; |
| 189 | } |
| 190 | return true; |
| 191 | } |
| 192 | }; |
| 193 | |
| 194 | // Global user handles function used in windows callback and code |
nothing calls this directly
no outgoing calls
no test coverage detected