如果详细信息部分重复字段值,则保留最后一个并抑制剩余(水晶报告8.5)
答案 0 :(得分:0)
不确定我是否完全理解你的问题,但是你可以对该部分进行压制吗?
单击Suppress(无向下钻取),单击X + 2:
wchar_t *zGetName(DWORD kPid)
{
if (!kPid)
return NULL;
PROCESSENTRY32W kPE32;
HANDLE kSnap;
kPE32.dwSize = sizeof(PROCESSENTRY32W);
kSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (!kSnap)
return NULL;
if (Process32FirstW(kSnap, &kPE32))
{
do {
if (kPE32.th32ProcessID == kPid)
{
wchar_t *kExe = kPE32.szExeFile;
CloseHandle(kSnap);
return kExe;
}
} while (Process32NextW(kSnap, &kPE32));
}
CloseHandle(kSnap);
return NULL;
}
int main()
{
try
{
SetConsoleTitleW(L"BruteID");
std::cout << R"(Press any key to start scanning for process IDs. . .)";
getchar();
DWORD kFirst = 0x0;
int64_t kCount = 0;
for (kFirst; kFirst < 10000; ++kFirst)
{
kCount++;
wchar_t *kName = zGetName(kFirst);
if (kName != 0)
{
std::cout << "{" << __TIME__ << "} " << "The process ID " << kFirst << " belongs to the process ";
_tprintf(TEXT("%s"), kName);
std::cout << "\n";
zSetConsole(kCount);
}
else
zSetConsole(kCount);
}
}
catch (...) {}
getchar();
}