Source code of Windows XP (NT5)
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.

142 lines
2.8 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 <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 <netlib.h> // LAN Man utility routines
  25. #include <netlibnt.h> // NetpNtStatusToApiStatus
  26. #include <netdebug.h> // NetpDbgPrint
  27. #include <tstring.h> // Transitional string functions
  28. #include <icanon.h> // I_Net canonicalize functions
  29. #include <align.h> // ROUND_UP_COUNT macro
  30. #include <rpc.h> // DataTypes and runtime APIs
  31. #include <rpcutil.h> // Prototypes for MIDL user functions
  32. #include <wkssvc.h> // Generated by the MIDL complier
  33. //
  34. // Debug trace level bits for turning on/off trace statements in the
  35. // Workstation service
  36. //
  37. //
  38. // NetWksta[Get|Set]Info APIs
  39. //
  40. #define WKSTA_DEBUG_INFO 0x00000001
  41. //
  42. // NetWkstaUser APIs
  43. //
  44. #define WKSTA_DEBUG_USER 0x00000002
  45. //
  46. // NetUse APIs
  47. //
  48. #define WKSTA_DEBUG_USE 0x00000004
  49. //
  50. // NetAlert APIs
  51. //
  52. #define WKSTA_DEBUG_ALERT 0x00000008
  53. //
  54. // NetServerEnum
  55. //
  56. #define WKSTA_DEBUG_SERVER_ENUM 0x00000010
  57. //
  58. // Utility trace statements
  59. //
  60. #define WKSTA_DEBUG_UTIL 0x00000020
  61. //
  62. // Configuration trace statements
  63. //
  64. #define WKSTA_DEBUG_CONFIG 0x00000040
  65. //
  66. // Main service functionality
  67. //
  68. #define WKSTA_DEBUG_MAIN 0x00000080
  69. //
  70. // NetMessageBufferSend
  71. //
  72. #define WKSTA_DEBUG_MESSAGE 0x00000100
  73. //
  74. // Logon support trace statements
  75. //
  76. #define WKSTA_DEBUG_LOGON 0x00000200
  77. //
  78. // Logon support trace statements
  79. //
  80. #define WKSTA_DEBUG_START 0x00000400
  81. //
  82. // All debug flags on
  83. //
  84. #define WKSTA_DEBUG_ALL 0xFFFFFFFF
  85. #if DBG
  86. #define STATIC
  87. extern DWORD WorkstationTrace;
  88. #define DEBUG if (TRUE)
  89. #define IF_DEBUG(Function) if (WorkstationTrace & WKSTA_DEBUG_ ## Function)
  90. #else
  91. #define STATIC static
  92. #define DEBUG if (FALSE)
  93. #define IF_DEBUG(Function) if (FALSE)
  94. #endif // DBG
  95. extern NET_API_STATUS
  96. WsUpdateStatus(
  97. VOID
  98. );
  99. #endif // ifdef _WS_INCLUDED_