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

Method getCurrentModulePath

Scylla/MainGui.cpp:1602–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600}
1601
1602bool MainGui::getCurrentModulePath(WCHAR * buffer, size_t bufferSize)
1603{
1604 if(!selectedProcess)
1605 return false;
1606
1607 if(ProcessAccessHelp::selectedModule)
1608 {
1609 wcscpy_s(buffer, bufferSize, ProcessAccessHelp::selectedModule->fullPath);
1610 }
1611 else
1612 {
1613 wcscpy_s(buffer, bufferSize, selectedProcess->fullPath);
1614 }
1615
1616 WCHAR * slash = wcsrchr(buffer, L'\\');
1617 if(slash)
1618 {
1619 *(slash+1) = L'\0';
1620 }
1621
1622 return true;
1623}
1624
1625void MainGui::checkSuspendProcess()
1626{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected