MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ResourceIndexToIdEnumProc

Function ResourceIndexToIdEnumProc

source/util.cpp:2527–2537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2525};
2526
2527BOOL CALLBACK ResourceIndexToIdEnumProc(HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam)
2528{
2529 ResourceIndexToIdEnumData &enum_data = *(ResourceIndexToIdEnumData*)lParam;
2530
2531 if (++enum_data.index == enum_data.find_index)
2532 {
2533 enum_data.result = lpszName;
2534 return FALSE; // Stop
2535 }
2536 return TRUE; // Continue
2537}
2538
2539static TCHAR RESOURCE_ID_NOT_FOUND[] = {0};
2540

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected