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