| 2456 | } |
| 2457 | |
| 2458 | static int kwsysProcess_List__Update_Snapshot(kwsysProcess_List* self) |
| 2459 | { |
| 2460 | if (self->Snapshot) { |
| 2461 | CloseHandle(self->Snapshot); |
| 2462 | } |
| 2463 | if (!(self->Snapshot = |
| 2464 | self->P_CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0))) { |
| 2465 | return 0; |
| 2466 | } |
| 2467 | ZeroMemory(&self->CurrentEntry, sizeof(self->CurrentEntry)); |
| 2468 | self->CurrentEntry.dwSize = sizeof(self->CurrentEntry); |
| 2469 | if (!self->P_Process32First(self->Snapshot, &self->CurrentEntry)) { |
| 2470 | CloseHandle(self->Snapshot); |
| 2471 | self->Snapshot = 0; |
| 2472 | return 0; |
| 2473 | } |
| 2474 | return 1; |
| 2475 | } |
| 2476 | |
| 2477 | static int kwsysProcess_List__Next_Snapshot(kwsysProcess_List* self) |
| 2478 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…