Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.4 KiB

  1. /*++
  2. Copyright (C) 1992-2001 Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. capture.h
  5. Abstract:
  6. Netmon-abstraction-related defines
  7. Author:
  8. Anthony Leibovitz (tonyle) 02-01-2001
  9. Revision History:
  10. --*/
  11. #ifndef _CAPTURE_H_
  12. #define _CAPTURE_H_
  13. /*
  14. NETMON
  15. */
  16. #define NETMON_INF_STRING TEXT("ms_netmon")
  17. #define NETCFG_LIBRARY_NAME TEXT("netcfgx.dll")
  18. #define NETCFG_NETINSTALL_ENTRYPOINT "NetCfgDiagFromCommandArgs"
  19. #define MAX_LAN_CAPTURE_COUNT 10
  20. typedef struct _RASDIAGCAPTURE {
  21. BOOL bWan;
  22. WCHAR *pszMacAddr;
  23. WCHAR szCaptureFileName[MAX_PATH+1];
  24. IDelaydC* pIDelaydC;
  25. HBLOB hBlob;
  26. STATISTICS stats;
  27. } *PRASDIAGCAPTURE,RASDIAGCAPTURE;
  28. BOOL
  29. DoNetmonInstall(void);
  30. BOOL
  31. IdentifyInterfaces(PRASDIAGCAPTURE *hLAN, DWORD *pdwLanCount);
  32. BOOL
  33. InitIDelaydC(HBLOB hBlob, IDelaydC **ppIDelaydC);
  34. BOOL
  35. DiagStartCapturing(PRASDIAGCAPTURE pNetInterfaces, DWORD dwNetCount);
  36. BOOL
  37. DiagStopCapturing(PRASDIAGCAPTURE pNetInterfaces, DWORD dwNetCount, SYSTEMTIME *pDiagTime, WCHAR *szRasDiagDir);
  38. typedef void (*LPFNNetCfgDiagFromCommandArgs)(DIAG_OPTIONS *);
  39. BOOL
  40. SetAddressFilter(HBLOB hBlob);
  41. BOOL
  42. MoveCaptureFile(PRASDIAGCAPTURE pCapInfo, DWORD dwCapCount, SYSTEMTIME *pDiagTime, WCHAR *pszRasDiagDir);
  43. BOOL
  44. NetmonCleanup(PRASDIAGCAPTURE pNetInterfaces, DWORD dwNetCount);
  45. #endif // _CAPTURE_H_