MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetUid

Method GetUid

DebugView++Lib/ProcessInfo.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90DWORD ProcessInfo::GetUid(DWORD processId, const std::wstring& processName)
91{
92 for (auto& item : m_processProperties)
93 {
94 if (item.second.pid == processId && item.second.name == processName)
95 return item.first;
96 }
97
98 DWORD index = m_unqiueId;
99 ++m_unqiueId;
100
101 m_processProperties[index] = InternalProcessProperties(processId, processName, GetRandomProcessColor());
102 return index;
103}
104
105ProcessProperties ProcessInfo::GetProcessProperties(DWORD processId, const std::wstring& processName)
106{

Callers

nothing calls this directly

Calls 2

GetRandomProcessColorFunction · 0.85

Tested by

no test coverage detected