I’ve been struggling with this for a few days now, I’m writing an app for myself to monitor process bandwidth usage, but I cannot get the NtTdiApi.GetProcTable() to work, and would really appreciate it if someone could point me in the right direction!
PInvoke in the api wrapper:
public static extern bool GetProcTable(
[In] int hOpen,
//[In, Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
[In, Out] ref int pdwSize