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.

110 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. br.h
  5. Abstract:
  6. Private header file for the NT Browser service included by every
  7. module of the Workstation service.
  8. Author:
  9. Rita Wong (ritaw) 15-Feb-1991
  10. Revision History:
  11. --*/
  12. #ifndef _BR_INCLUDED_
  13. #define _BR_INCLUDED_
  14. #include <nt.h> // NT definitions
  15. #include <ntrtl.h> // NT runtime library definitions
  16. #include <nturtl.h>
  17. #include <windef.h> // Win32 type definitions
  18. #include <winbase.h> // Win32 base API prototypes
  19. #include <winsvc.h> // Win32 service control APIs
  20. #include <lmcons.h> // LAN Manager common definitions
  21. #include <lmerr.h> // LAN Manager network error definitions
  22. #include <lmsname.h> // LAN Manager service names
  23. #include <lmapibuf.h> // NetApiBufferFree
  24. #include <lmserver.h>
  25. #include <netlib.h> // LAN Man utility routines
  26. #include <netlibnt.h> // NetpNtStatusToApiStatus
  27. #include <netdebug.h> // NetpDbgPrint
  28. #include <tstring.h> // Transitional string functions
  29. #include <icanon.h> // I_Net canonicalize functions
  30. #include <align.h> // ROUND_UP_COUNT macro
  31. #include <svcs.h> // Intrinsic service definitions
  32. #include <strarray.h>
  33. #include <rpc.h> // DataTypes and runtime APIs
  34. #include <rpcutil.h> // Prototypes for MIDL user functions
  35. #include <bowser.h> // Generated by the MIDL complier
  36. #include <winsvc.h>
  37. #include <srvann.h>
  38. #include <lmbrowsr.h>
  39. #include <ntddbrow.h>
  40. #include <brcommon.h> // Common browser routines.
  41. #include <rx.h>
  42. #include <rxserver.h>
  43. #include <brconst.h>
  44. #include "bowqueue.h"
  45. #include "brdomain.h"
  46. #include "browsnet.h"
  47. #include "browslst.h"
  48. #include "brutil.h"
  49. #include "brwan.h"
  50. #include "brmain.h"
  51. #include "brdevice.h"
  52. #include "brconfig.h"
  53. #include "browsdom.h"
  54. #include "brbackup.h"
  55. #include "brmaster.h"
  56. #include "srvenum.h"
  57. //
  58. // The following macros are used to establish the semantics needed
  59. // to do a return from within a try-finally clause. As a rule every
  60. // try clause must end with a label call try_exit. For example,
  61. //
  62. // try {
  63. // :
  64. // :
  65. //
  66. // try_exit: NOTHING;
  67. // } finally {
  68. //
  69. // :
  70. // :
  71. // }
  72. //
  73. // Every return statement executed inside of a try clause should use the
  74. // try_return macro. If the compiler fully supports the try-finally construct
  75. // then the macro should be
  76. //
  77. // #define try_return(S) { return(S); }
  78. //
  79. // If the compiler does not support the try-finally construct then the macro
  80. // should be
  81. //
  82. #define try_return(S) { S; goto try_exit; }
  83. #define BrPrint(_x_) BrowserTrace _x_
  84. #endif // ifdef _BR_INCLUDED_