Hello, I've been trying to understand why I can't find the name of this process listed below. I tried two things: getpidfromname and I've also tried enumerating through the entire process list and printing all the names and the corresponding process IDs.
Both couldn't find the process.
Also the code I'm using to test:
DWORD dwPIDs[1024] = { 0 };
ULONG64 cPIDs = 1024;
ULONG64 currentPID; // Variable to store the current PID
VMMDLL_PidList(hVMM, dwPIDs, &cPIDs);
VMMDLL_PROCESS_INFORMATION ProcessInformation;
SIZE_T cbProcessInformation = sizeof(VMMDLL_PROCESS_INFORMATION);
ZeroMemory(&ProcessInformation, sizeof(VMMDLL_PROCESS_INFORMATION));
ProcessInformation.magic = VMMDLL_PROCESS_INFORMATION_MAGIC;
ProcessInformation.wVersion = VMMDLL_PROCESS_INFORMATION_VERSION;
// For example, printing the PIDs for demonstration purposes
for (ULONG64 j = 0; j < cPIDs; j++) {
currentPID = dwPIDs[j]; // Store the current PID from dwPIDs array
bool result = VMMDLL_ProcessGetInformation(hVMM, currentPID, &ProcessInformation, &cbProcessInformation);
if (result) {
std::cout << ProcessInformation.szNameLong << " Process ID = " << currentPID << std::endl;
}
}
Hello, I've been trying to understand why I can't find the name of this process listed below. I tried two things: getpidfromname and I've also tried enumerating through the entire process list and printing all the names and the corresponding process IDs.
Both couldn't find the process.
Also the code I'm using to test: