| 160 | |
| 161 | template <typename _T> |
| 162 | BOOL |
| 163 | __stdcall |
| 164 | SK_LoadLibrary_PinModule (const _T* pStr) |
| 165 | { |
| 166 | #pragma push_macro ("GetModuleHandleEx") |
| 167 | |
| 168 | #undef GetModuleHandleEx |
| 169 | static GetModuleHandleEx_pfn GetModuleHandleEx = |
| 170 | (GetModuleHandleEx_pfn) |
| 171 | LPCVOID ( typeid ( _T) == |
| 172 | typeid (wchar_t) ? |
| 173 | (GetModuleHandleEx_pfn) &GetModuleHandleExW : |
| 174 | (GetModuleHandleEx_pfn) &GetModuleHandleExA ); |
| 175 | |
| 176 | HMODULE hModDontCare = 0x0; |
| 177 | |
| 178 | return |
| 179 | GetModuleHandleEx ( GET_MODULE_HANDLE_EX_FLAG_PIN, |
| 180 | pStr, |
| 181 | &hModDontCare ); |
| 182 | |
| 183 | #pragma pop_macro ("GetModuleHandleEx") |
| 184 | } |
| 185 | |
| 186 | template <typename _T> |
| 187 | bool |
no outgoing calls
no test coverage detected