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.

132 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nwclient.h
  5. Abstract:
  6. Common header for Workstation client-side code.
  7. Author:
  8. Rita Wong (ritaw) 25-Feb-1993
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _NWCLIENT_INCLUDED_
  14. #define _NWCLIENT_INCLUDED_
  15. #include <stdlib.h>
  16. #include <nt.h>
  17. #include <ntrtl.h>
  18. #include <nturtl.h>
  19. #include <windows.h>
  20. #include <npapi.h>
  21. #include <nwwks.h>
  22. //
  23. // Debug trace level bits for turning on/off trace statements in the
  24. // Workstation service
  25. //
  26. //
  27. // Initialization and reading info from registry
  28. //
  29. #define NW_DEBUG_INIT 0x00000001
  30. //
  31. // Connection APIs
  32. //
  33. #define NW_DEBUG_CONNECT 0x00000002
  34. //
  35. // Logon APIs
  36. //
  37. #define NW_DEBUG_LOGON 0x00000004
  38. //
  39. // Enum APIs
  40. //
  41. #define NW_DEBUG_ENUM 0x00000008
  42. //
  43. // Other APIs
  44. //
  45. #define NW_DEBUG_OTHER 0x00000010
  46. //
  47. // Print APIs
  48. //
  49. #define NW_DEBUG_PRINT 0x00000020
  50. //
  51. // hInstance of the dll ( nwprovau.dll )
  52. //
  53. extern HMODULE hmodNW;
  54. extern BOOL fIsWinnt;
  55. //
  56. // Debug stuff
  57. //
  58. #if DBG
  59. extern DWORD NwProviderTrace;
  60. #define IF_DEBUG(DebugCode) if (NwProviderTrace & NW_DEBUG_ ## DebugCode)
  61. #define STATIC
  62. #else
  63. #define IF_DEBUG(DebugCode) if (FALSE)
  64. #define STATIC static
  65. #endif // DBG
  66. DWORD
  67. NwpMapRpcError(
  68. IN DWORD RpcError
  69. );
  70. DWORD
  71. NwpConvertSid(
  72. IN PSID Sid,
  73. OUT LPWSTR *UserSidString
  74. );
  75. DWORD
  76. NwpCacheCredentials(
  77. IN LPWSTR RemoteName,
  78. IN LPWSTR UserName,
  79. IN LPWSTR Password
  80. );
  81. BOOL
  82. NwpRetrieveCachedCredentials(
  83. IN LPWSTR RemoteName,
  84. OUT LPWSTR *UserName,
  85. OUT LPWSTR *Password
  86. );
  87. #ifndef NT1057
  88. VOID
  89. NwCleanupShellExtensions(
  90. VOID
  91. );
  92. #endif
  93. #endif // _NWCLIENT_INCLUDED_