MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / CreateIconFromResourceICO

Function CreateIconFromResourceICO

includes/stdafx.cpp:394–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394HICON CreateIconFromResourceICO(UINT nID, int32_t cx, int32_t cy)
395{
396 HMODULE hm;
397 GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCSTR)&GetDesktopRes, &hm);
398 return (HICON)LoadImage(hm, MAKEINTRESOURCE(nID), IMAGE_ICON, cx, cy, LR_SHARED);
399}
400
401std::string RegistryWrapper::filter;
402CIniReader RegistryWrapper::RegistryReader;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected