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.

87 lines
2.1 KiB

  1. //=================================================================
  2. //
  3. // ndismisc.h --
  4. //
  5. // Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. //
  8. //=================================================================
  9. #ifndef _NDISMISC_
  10. #define _NDISMISC_
  11. #define _PNP_POWER_
  12. #include <ntddip.h>
  13. // Taken from Ndisapi.h the __stdcall is required here
  14. //
  15. // Definitions for Layer
  16. //
  17. #define NDIS 0x01
  18. #define TDI 0x02
  19. //
  20. // Definitions for Operation
  21. //
  22. #define BIND 0x01
  23. #define UNBIND 0x02
  24. #define RECONFIGURE 0x03
  25. #define UNBIND_FORCE 0x04
  26. #define UNLOAD 0x05
  27. #define REMOVE_DEVICE 0x06 // This is a notification that a device is about to be removed.
  28. //
  29. // Return code from this api is to be treated as a BOOL. Link with ndispnp.lib for this.
  30. //
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. extern
  35. UINT __stdcall
  36. NdisHandlePnPEvent(
  37. IN UINT Layer,
  38. IN UINT Operation,
  39. IN PUNICODE_STRING LowerComponent,
  40. IN PUNICODE_STRING UpperComponent,
  41. IN PUNICODE_STRING BindList,
  42. IN PVOID ReConfigBuffer OPTIONAL,
  43. IN UINT ReConfigBufferSize OPTIONAL
  44. );
  45. #ifdef __cplusplus
  46. } // extern "C"
  47. #endif
  48. // the following is found in /nt/private/net/config/netcfg/nwlnkcfg/nwlnkipx.cpp and
  49. // /nt/private/net/routing/ipx/autonet/netnum.cpp
  50. #define IPX_RECONFIG_VERSION 0x1
  51. #define RECONFIG_AUTO_DETECT 1
  52. #define RECONFIG_MANUAL 2
  53. #define RECONFIG_PREFERENCE_1 3
  54. #define RECONFIG_NETWORK_NUMBER_1 4
  55. #define RECONFIG_PREFERENCE_2 5
  56. #define RECONFIG_NETWORK_NUMBER_2 6
  57. #define RECONFIG_PREFERENCE_3 7
  58. #define RECONFIG_NETWORK_NUMBER_3 8
  59. #define RECONFIG_PREFERENCE_4 9
  60. #define RECONFIG_NETWORK_NUMBER_4 10
  61. #define RECONFIG_PARAMETERS 10
  62. //
  63. // Main configuration structure.
  64. //
  65. typedef struct _RECONFIG {
  66. unsigned long ulVersion;
  67. BOOLEAN InternalNetworkNumber;
  68. BOOLEAN AdapterParameters[RECONFIG_PARAMETERS];
  69. } RECONFIG, *PRECONFIG;
  70. #endif // _NDISMISC_