MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / ScanResourcesForLanguages

Method ScanResourcesForLanguages

cppcryptfs/cppcryptfs.cpp:110–115  ·  view source on GitHub ↗

Scan EXE resources for translated sections

Source from the content-addressed store, hash-verified

108
109// Scan EXE resources for translated sections
110void CcppcryptfsApp::ScanResourcesForLanguages() {
111 m_vAvailableLangs.clear();
112 // (IDS_LANGUAGE_NAME >> 4) + 1 - formula for calculating the block number in String Table
113 EnumResourceLanguages(NULL, RT_STRING, MAKEINTRESOURCE((IDS_LANGUAGE_NAME >> 4) + 1),
114 EnumLangsCallback, (LONG_PTR)&m_vAvailableLangs);
115}
116
117// Direct reading of a string from a specific language section (bypassing the current thread locale)
118CString CcppcryptfsApp::GetStringForLang(HMODULE hInst, UINT nID, WORD wLang)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected