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.

69 lines
1.3 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. perfnbt.h
  5. Abstract:
  6. This file provides the function prototypes for the routines
  7. to open, collect and close Nbt Performance Data. It also
  8. provides the perfnbt.c module with some structure and
  9. constant definitions.
  10. Author:
  11. Christos Tsollis 8/26/92
  12. Revision History:
  13. --*/
  14. #ifndef _PERFNBT_H_
  15. #define _PERFNBT_H_
  16. //
  17. // Nbt structures and constants (many of them are really defined in
  18. // <sys\snet\nbt_stat.h>
  19. //
  20. #define NBT_DEVICE "\\Device\\Streams\\nbt"
  21. #define MAX_ENDPOINTS_PER_MSG 32 // max no. of ENDPOINT_INFOs per message
  22. #define HOSTNAME_LENGTH 17
  23. #define SCOPE_ID_LENGTH 240
  24. #define NBT_ENDPOINT_INFO NBT_XEBINFO
  25. //
  26. // Structures passed/returned in s_ioctl() command
  27. //
  28. typedef struct nbt_stat NBT_STATUS;
  29. typedef struct nbt_info NBT_INFO;
  30. //
  31. // Per Endpoint (Connection) Data
  32. //
  33. typedef struct xebinfo ENDPOINT_INFO;
  34. //
  35. // Other structures
  36. //
  37. typedef struct strbuf BUFFER_STRUCT;
  38. typedef struct strioctl IOCTL_STRUCT;
  39. //
  40. // Prototypes for the Nbt routines
  41. //
  42. extern DWORD OpenNbtPerformanceData ();
  43. extern DWORD CollectNbtPerformanceData (LPWSTR, LPVOID *, LPDWORD, LPDWORD);
  44. extern DWORD CloseNbtPerformanceData ();
  45. #endif //_PERFNBT_H_
  46.