Lines Matching refs:infoPtr
476 SYSTEM_PROCESS_INFORMATION *infoPtr = in queryAllProcess() local
479 if (infoPtr != NULL) { in queryAllProcess()
483 SystemProcessInformation, infoPtr, infoSize, &needed) != 0) { in queryAllProcess()
491 VirtualFree(infoPtr, 0, MEM_RELEASE); in queryAllProcess()
493 infoPtr = (SYSTEM_PROCESS_INFORMATION *) VirtualAlloc( in queryAllProcess()
498 SystemProcessInformation, infoPtr, infoSize, NULL) != 0) { in queryAllProcess()
505 if (infoPtr == NULL) { in queryAllProcess()
512 VirtualFree(infoPtr, 0, MEM_RELEASE); in queryAllProcess()
513 infoPtr = NULL; in queryAllProcess()
515 return infoPtr; in queryAllProcess()
527 SYSTEM_HANDLE_INFORMATION *infoPtr = in queryAllHandles() local
530 if (infoPtr != NULL) { in queryAllHandles()
534 SystemHandleInformation, infoPtr, infoSize, &needed) != 0) { in queryAllHandles()
542 VirtualFree(infoPtr, 0, MEM_RELEASE); in queryAllHandles()
544 infoPtr = (SYSTEM_HANDLE_INFORMATION *) VirtualAlloc( in queryAllHandles()
549 if (infoPtr == NULL) { in queryAllHandles()
555 if (sNtQuerySystemInformationFunc(SystemHandleInformation, infoPtr, infoSize, NULL) != 0) { in queryAllHandles()
562 VirtualFree(infoPtr, 0, MEM_RELEASE); in queryAllHandles()
563 infoPtr = NULL; in queryAllHandles()
565 return infoPtr; in queryAllHandles()