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.

115 lines
2.7 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1995 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: nbfcpif.h
  7. //
  8. // Description: Contains structures and id definitions for componenets that
  9. // directly or indireclty interface with NBFCP. The 2 components
  10. // that do this are DDM and the NetBios gateqway
  11. //
  12. // History: May 11,1995 NarenG Created original version.
  13. //
  14. #ifndef _NBFCPIF_
  15. #define _NBFCPIF_
  16. #include <nb30.h>
  17. #include <nbgparms.h>
  18. //
  19. // Configuration Options
  20. //
  21. #define NBFCP_MAX_NAMES_IN_OPTION 14
  22. #define NBFCP_UNIQUE_NAME 1
  23. #define NBFCP_GROUP_NAME 2
  24. typedef struct _NBFCP_NETBIOS_NAME_INFO
  25. {
  26. BYTE Name[NCBNAMSZ];
  27. BYTE Code;
  28. } NBFCP_NETBIOS_NAME_INFO, *PNBFCP_NETBIOS_NAME_INFO;
  29. typedef struct _NBFCP_MULTICAST_FILTER
  30. {
  31. BYTE Period[2];
  32. BYTE Priority;
  33. } NBFCP_MULTICAST_FILTER, *PNBFCP_MULTICAST_FILTER;
  34. //
  35. // Peer classes
  36. //
  37. #define MSFT_PPP_NB_GTWY_SERVER 1
  38. #define GENERIC_PPP_NB_GTWY_SERVER 2
  39. #define MSFT_PPP_LOCAL_ACCESS_SERVER 3
  40. #define GENERIC_PPP_LOCAL_ACCESS_SERVER 4
  41. #define RESERVED 5
  42. #define GENERIC_PPP_NBF_BRIDGE 6
  43. #define MSFT_PPP_CLIENT 7
  44. #define GENERIC_PPP_CLIENT 8
  45. //
  46. // Our version numbers
  47. //
  48. #define NBFCP_MAJOR_VERSION_NUMBER 1
  49. #define NBFCP_MINOR_VERSION_NUMBER 0
  50. typedef struct _NBFCP_PEER_INFORMATION
  51. {
  52. BYTE Class[2];
  53. BYTE MajorVersion[2];
  54. BYTE MinorVersion[2];
  55. BYTE Name[MAX_COMPUTERNAME_LENGTH + 1];
  56. } NBFCP_PEER_INFORMATION, *PNBFCP_PEER_INFORMATION;
  57. //
  58. // Server Info
  59. //
  60. typedef struct _NBFCP_SERVER_CONFIGURATION
  61. {
  62. NBFCP_PEER_INFORMATION PeerInformation;
  63. NBFCP_MULTICAST_FILTER MulticastFilter;
  64. WORD NumNetbiosNames;
  65. DWORD NetbiosResult;
  66. NBFCP_NETBIOS_NAME_INFO NetbiosNameInfo[MAX_NB_NAMES];
  67. } NBFCP_SERVER_CONFIGURATION, *PNBFCP_SERVER_CONFIGURATION;
  68. //
  69. // NBFCP<->DDM Message Ids and definitions.
  70. //
  71. #define NBFCP_CONFIGURATION_REQUEST 1
  72. #define NBFCP_TIME_SINCE_LAST_ACTIVITY 2
  73. typedef struct _NBFCP_MESSAGE
  74. {
  75. WORD MsgId;
  76. HCONN hConnection;
  77. union
  78. {
  79. DWORD TimeSinceLastActivity;
  80. NBFCP_SERVER_CONFIGURATION ServerConfig;
  81. };
  82. } NBFCP_MESSAGE, *PNBFCP_MESSAGE;
  83. DWORD
  84. SendMessageToNbfCp(
  85. IN NBFCP_MESSAGE * pMsg
  86. );
  87. typedef VOID (*FUNCNBFCPDDMMSG)( IN NBFCP_MESSAGE * pNbfCpMsg );
  88. VOID
  89. InitNbfCp(
  90. FUNCNBFCPDDMMSG pFuncSendNbfCpMessageToDDM
  91. );
  92. #endif _NBFCPIF_