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.

58 lines
1.7 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1995 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: nbgtwyif.h
  7. //
  8. // Description: Contains structures and definitions for components that
  9. // interface directly or indirectly with the NetBios gateway.
  10. // These componenets are NBFCP and DDM
  11. //
  12. // History: May 11,1995 NarenG Created original version.
  13. //
  14. #ifndef _NBGTWYIF_
  15. #define _NBGTWYIF_
  16. #include <nbfcpif.h>
  17. //
  18. // Netbios Gateway -> DDM Message Ids and definitions
  19. //
  20. enum
  21. {
  22. NBG_PROJECTION_RESULT, // proj result. If fatal error, gtwy function
  23. // is terminated on this client
  24. NBG_CLIENT_STOPPED, // gtwy function on this client has terminated
  25. // following a stop command
  26. NBG_DISCONNECT_REQUEST, // gtwy function on this client has terminated
  27. // due to an internal exception
  28. NBG_LAST_ACTIVITY // to report time of last session activity
  29. };
  30. typedef struct _NBG_MESSAGE
  31. {
  32. WORD MsgId;
  33. HPORT hPort; // This is really an hConnection. Change this.
  34. union
  35. {
  36. DWORD LastActivity; // in minutes
  37. NBFCP_SERVER_CONFIGURATION config_result;
  38. };
  39. } NBG_MESSAGE;
  40. typedef WORD (* NBGATEWAYPROC)();
  41. extern NBGATEWAYPROC FpNbGatewayStart;
  42. extern NBGATEWAYPROC FpNbGatewayProjectClient;
  43. extern NBGATEWAYPROC FpNbGatewayStartClient;
  44. extern NBGATEWAYPROC FpNbGatewayStopClient;
  45. extern NBGATEWAYPROC FpNbGatewayRemoteListen;
  46. extern NBGATEWAYPROC FpNbGatewayTimer;
  47. #endif