MCPcopy Create free account
hub / github.com/dobin/RedEdr / GetFileNameFromPath

Function GetFileNameFromPath

RedEdrShared/process_query.cpp:522–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520
521
522wchar_t* GetFileNameFromPath(wchar_t* path) {
523 if (!path) {
524 return NULL;
525 }
526 wchar_t* lastBackslash = wcsrchr(path, L'\\');
527 return (lastBackslash != NULL) ? lastBackslash + 1 : path;
528}
529
530
531DWORD FindProcessIdByName(const std::wstring& processName) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected