Skip to content

Commit

Permalink
Add PhGetProcesNetworkIoCounters
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Jun 30, 2024
1 parent 653375f commit 25c4f82
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions phlib/include/phnativeinl.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,22 @@ PhGetProcessMitigationPolicyInformation(
);
}

FORCEINLINE
NTSTATUS
PhGetProcesNetworkIoCounters(
_In_ HANDLE ProcessHandle,
_Out_ PPROCESS_NETWORK_COUNTERS NetworkIoCounters
)
{
return NtQueryInformationProcess(
ProcessHandle,
ProcessNetworkIoCounters,
NetworkIoCounters,
sizeof(PROCESS_NETWORK_COUNTERS),
NULL
);
}

FORCEINLINE
NTSTATUS
PhGetProcessPowerThrottlingState(
Expand Down

0 comments on commit 25c4f82

Please sign in to comment.