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.

146 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. ws.h
  5. Abstract:
  6. Private header file for the NT Workstation 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 _WS_INCLUDED_
  13. #define _WS_INCLUDED_
  14. #include <nt.h> // NT definitions
  15. #include <ntrtl.h> // NT runtime library definitions
  16. #include <nturtl.h>
  17. #include <windows.h> // Win32 API
  18. #include <lmcons.h> // LAN Manager common definitions
  19. #include <lmerr.h> // LAN Manager network error definitions
  20. #include <lmsname.h> // LAN Manager service names
  21. #include <lmapibuf.h> // NetApiBufferFree
  22. #include <netlib.h> // LAN Man utility routines
  23. #include <netlibnt.h> // NetpNtStatusToApiStatus
  24. #include <netdebug.h> // NetpDbgPrint
  25. #include <tstring.h> // Transitional string functions
  26. #include <icanon.h> // I_Net canonicalize functions
  27. #include <align.h> // ROUND_UP_COUNT macro
  28. #include <rpc.h> // DataTypes and runtime APIs
  29. #include <rpcutil.h> // Prototypes for MIDL user functions
  30. #include <wkssvc.h> // Generated by the MIDL complier
  31. //
  32. // Include Safe String Functions, but still use depreciated ones in
  33. // unmodified code
  34. //
  35. #define STRSAFE_NO_DEPRECATE
  36. #include <strsafe.h> // Safe String Functions
  37. //
  38. // Debug trace level bits for turning on/off trace statements in the
  39. // Workstation service
  40. //
  41. //
  42. // NetWksta[Get|Set]Info APIs
  43. //
  44. #define WKSTA_DEBUG_INFO 0x00000001
  45. //
  46. // NetWkstaUser APIs
  47. //
  48. #define WKSTA_DEBUG_USER 0x00000002
  49. //
  50. // NetUse APIs
  51. //
  52. #define WKSTA_DEBUG_USE 0x00000004
  53. //
  54. // NetAlert APIs
  55. //
  56. #define WKSTA_DEBUG_ALERT 0x00000008
  57. //
  58. // NetServerEnum
  59. //
  60. #define WKSTA_DEBUG_SERVER_ENUM 0x00000010
  61. //
  62. // Utility trace statements
  63. //
  64. #define WKSTA_DEBUG_UTIL 0x00000020
  65. //
  66. // Configuration trace statements
  67. //
  68. #define WKSTA_DEBUG_CONFIG 0x00000040
  69. //
  70. // Main service functionality
  71. //
  72. #define WKSTA_DEBUG_MAIN 0x00000080
  73. //
  74. // NetMessageBufferSend
  75. //
  76. #define WKSTA_DEBUG_MESSAGE 0x00000100
  77. //
  78. // Logon support trace statements
  79. //
  80. #define WKSTA_DEBUG_LOGON 0x00000200
  81. //
  82. // Logon support trace statements
  83. //
  84. #define WKSTA_DEBUG_START 0x00000400
  85. //
  86. // All debug flags on
  87. //
  88. #define WKSTA_DEBUG_ALL 0xFFFFFFFF
  89. #if DBG
  90. #define STATIC
  91. extern DWORD WorkstationTrace;
  92. #define DEBUG if (TRUE)
  93. #define IF_DEBUG(Function) if (WorkstationTrace & WKSTA_DEBUG_ ## Function)
  94. #else
  95. #define STATIC static
  96. #define DEBUG if (FALSE)
  97. #define IF_DEBUG(Function) if (FALSE)
  98. #endif // DBG
  99. extern NET_API_STATUS
  100. WsUpdateStatus(
  101. VOID
  102. );
  103. #endif // ifdef _WS_INCLUDED_