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.

70 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1989-1993 Microsoft Corporation
  3. Module Name:
  4. config.h
  5. Abstract:
  6. Private include file for the ISN Netbios module.
  7. file defines all constants and structures necessary for support of
  8. the dynamic configuration of ST.
  9. Revision History:
  10. --*/
  11. //
  12. // These are used to index into the Parameters array in CONFIG.
  13. //
  14. #define CONFIG_ACK_DELAY_TIME 0
  15. #define CONFIG_ACK_WINDOW 1
  16. #define CONFIG_ACK_WINDOW_THRESHOLD 2
  17. #define CONFIG_ENABLE_PIGGYBACK_ACK 3
  18. #define CONFIG_EXTENSIONS 4
  19. #define CONFIG_RCV_WINDOW_MAX 5
  20. #define CONFIG_BROADCAST_COUNT 6
  21. #define CONFIG_BROADCAST_TIMEOUT 7
  22. #define CONFIG_CONNECTION_COUNT 8
  23. #define CONFIG_CONNECTION_TIMEOUT 9
  24. #define CONFIG_INIT_PACKETS 10
  25. #define CONFIG_MAX_PACKETS 11
  26. #define CONFIG_INIT_RETRANSMIT_TIME 12
  27. #define CONFIG_INTERNET 13
  28. #define CONFIG_KEEP_ALIVE_COUNT 14
  29. #define CONFIG_KEEP_ALIVE_TIMEOUT 15
  30. #define CONFIG_RETRANSMIT_MAX 16
  31. #define CONFIG_ROUTER_MTU 17
  32. #define CONFIG_PARAMETERS 18
  33. //
  34. // Main configuration structure.
  35. //
  36. typedef struct _CONFIG {
  37. ULONG Parameters[CONFIG_PARAMETERS]; // index defined above
  38. NDIS_STRING DeviceName; // device name exported
  39. NDIS_STRING BindName; // device to bind to
  40. NDIS_STRING RegistryPath; // RegistryPath
  41. PDRIVER_OBJECT DriverObject; // used for logging errors
  42. } CONFIG, * PCONFIG;
  43. NTSTATUS
  44. NbiGetConfiguration (
  45. IN PDRIVER_OBJECT DriverObject,
  46. IN PUNICODE_STRING RegistryPath,
  47. OUT PCONFIG * ConfigPtr
  48. );
  49. VOID
  50. NbiFreeConfiguration (
  51. IN PCONFIG Config
  52. );