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.

66 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. sample\sample.h
  5. Abstract:
  6. The file contains the header for sample.c,
  7. the command dispatcher for the sample IP protocol.
  8. --*/
  9. // functions...
  10. VOID
  11. SampleInitialize(
  12. );
  13. // typedefs...
  14. typedef struct _CONTEXT_ENTRY // global information for a context
  15. {
  16. // context' version
  17. DWORD dwVersion;
  18. // context' identifying string
  19. PWSTR pwszName;
  20. // top level (non group) commands
  21. ULONG ulNumTopCmds;
  22. CMD_ENTRY *pTopCmds;
  23. // group commands
  24. ULONG ulNumGroupCmds;
  25. CMD_GROUP_ENTRY *pGroupCmds;
  26. // default configuration
  27. PBYTE pDefaultGlobal;
  28. PBYTE pDefaultInterface;
  29. // dump function
  30. PNS_CONTEXT_DUMP_FN pfnDump;
  31. } CONTEXT_ENTRY, *PCONTEXT_ENTRY;
  32. // globals...
  33. // information for the sample context
  34. CONTEXT_ENTRY g_ceSample;
  35. // constants...
  36. // context's version
  37. #define SAMPLE_CONTEXT_VERSION 1
  38. // parameters passed to set global...
  39. #define SAMPLE_LOG_MASK 0x00000001
  40. // parameters passed to add/set interface
  41. #define SAMPLE_IF_METRIC_MASK 0x00000001