This commit is contained in:
love-code-yeyixiao 2024-05-18 11:09:43 +08:00
parent 4dcf5197e2
commit aee5a9fb00
1 changed files with 1 additions and 1 deletions

View File

@ -1968,7 +1968,7 @@ DWORD GetParentPIDAndName(DWORD ProcessID, LPTSTR lpszBuffer_Parent_Name, PDWORD
DWORD dwParentID = 0;
if (NT_SUCCESS(status)) {
dwParentID = (ULONG_PTR)pbi.InheritedFromUniqueProcessId;
dwParentID = (DWORD)pbi.InheritedFromUniqueProcessId;
if (NULL != lpszBuffer_Parent_Name) {
HANDLE hParentProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, dwParentID);