Leaked source code of windows server 2003
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.

95 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. port.h
  5. Abstract:
  6. Header file information for port.h.
  7. Created:
  8. Patrick Y. Ng 12 Aug 93
  9. Revision History
  10. --*/
  11. #ifndef PORT_H
  12. #define PORT_H
  13. #include <rasman.h>
  14. //
  15. // Data structure used to store the statistics for each open port.
  16. //
  17. typedef struct _RAS_PORT_STAT
  18. {
  19. ULONG BytesTransmitted;
  20. ULONG BytesReceived;
  21. ULONG FramesTransmitted;
  22. ULONG FramesReceived;
  23. ULONG CRCErrors;
  24. ULONG TimeoutErrors;
  25. ULONG SerialOverrunErrors;
  26. ULONG AlignmentErrors;
  27. ULONG BufferOverrunErrors;
  28. ULONG BytesTransmittedUncompressed;
  29. ULONG BytesReceivedUncompressed;
  30. ULONG BytesTransmittedCompressed;
  31. ULONG BytesReceivedCompressed;
  32. ULONG TotalErrors;
  33. } RAS_PORT_STAT, *PRAS_PORT_STAT;
  34. //
  35. // Data structure used to store both the statistics and the name of each
  36. // open port.
  37. //
  38. typedef struct _RAS_PORT_DATA
  39. {
  40. RAS_PORT_STAT RasPortStat;
  41. WCHAR PortName[ MAX_PORT_NAME ];
  42. } RAS_PORT_DATA, *PRAS_PORT_DATA;
  43. //
  44. // Exported functions
  45. //
  46. extern LONG InitPortInfo();
  47. extern LONG InitRasFunctions();
  48. extern ULONG GetSpaceNeeded( BOOL IsRasPortObject, BOOL IsRasTotalObject );
  49. extern NTSTATUS CollectRasStatistics();
  50. extern DWORD GetNumOfPorts();
  51. extern LPWSTR GetInstanceName( INT i );
  52. extern VOID GetInstanceData( INT Port, PVOID *lppData );
  53. extern VOID GetTotalData( PVOID *lppData );
  54. extern VOID ClosePortInfo();
  55. //
  56. // Internal functions
  57. //
  58. #endif // PORT_H