MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / EnumResLangProc

Function EnumResLangProc

src/WriteZipToSetup/WriteZipToSetup.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace std;
7
8BOOL CALLBACK EnumResLangProc(HMODULE hModule, LPCTSTR lpszType, LPCTSTR lpszName, WORD wIDLanguage, LONG_PTR lParam)
9{
10 HANDLE hUpdate = (HANDLE)lParam;
11 HRSRC hFindItAgain = FindResourceEx(hModule, lpszType, lpszName, wIDLanguage);
12
13 HGLOBAL hGlobal = LoadResource(hModule, hFindItAgain);
14 if (!hGlobal) return true;
15
16 UpdateResource(hUpdate, lpszType, lpszName, wIDLanguage, LockResource(hGlobal), SizeofResource(hModule, hFindItAgain));
17 return true;
18}
19
20BOOL CALLBACK EnumResNameProc(HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam)
21{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected