NetStatisticsGet

[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern uint NetStatisticsGet(
   string ServerName,
   string Service,
   uint Level,
   uint Options,
   out IntPtr Buffer
);

Microsoft documentation: Link

Last updated