MCPcopy Create free account
hub / github.com/NtQuery/Scylla / buildSearchString

Method buildSearchString

Scylla/PluginLoader.cpp:209–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209bool PluginLoader::buildSearchString()
210{
211 ZeroMemory(dirSearchString, sizeof(dirSearchString));
212 ZeroMemory(baseDirPath, sizeof(baseDirPath));
213
214 if (!GetModuleFileName(0, dirSearchString, _countof(dirSearchString)))
215 {
216#ifdef DEBUG_COMMENTS
217 Scylla::debugLog.log(L"buildSearchString :: GetModuleFileName failed %d", GetLastError());
218#endif
219 return false;
220 }
221
222 //wprintf(L"dirSearchString 1 %s\n\n", dirSearchString);
223 PathRemoveFileSpec(dirSearchString);
224 //wprintf(L"dirSearchString 2 %s\n\n", dirSearchString);
225 PathAppend(dirSearchString, PLUGIN_DIR);
226
227 wcscpy_s(baseDirPath, dirSearchString);
228 wcscat_s(dirSearchString, PLUGIN_SEARCH_STRING);
229
230 //wprintf(L"dirSearchString 3 %s\n\n", dirSearchString);
231
232#ifdef DEBUG_COMMENTS
233 Scylla::debugLog.log(L"dirSearchString final %s", dirSearchString);
234#endif
235
236
237 return true;
238}
239
240bool PluginLoader::isValidDllFile( const WCHAR * fullpath )
241{

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected