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.

128 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. nwutil.h
  5. Abstract:
  6. Common header for Workstation client-side code.
  7. Author:
  8. Yi-Hsin Sung (yihsins) 25-Oct-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _NWUTIL_H_
  14. #define _NWUTIL_H_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define TREECHAR L'*'
  19. #define TWO_KB 2048
  20. BOOL
  21. NwIsNdsSyntax(
  22. IN LPWSTR lpstrUnc
  23. );
  24. VOID
  25. NwAbbreviateUserName(
  26. IN LPWSTR pszFullName,
  27. OUT LPWSTR pszUserName
  28. );
  29. VOID
  30. NwMakePrettyDisplayName(
  31. IN LPWSTR pszName
  32. );
  33. VOID
  34. NwExtractTreeName(
  35. IN LPWSTR pszUNCPath,
  36. OUT LPWSTR pszTreeName
  37. );
  38. VOID
  39. NwExtractServerName(
  40. IN LPWSTR pszUNCPath,
  41. OUT LPWSTR pszServerName
  42. );
  43. VOID
  44. NwExtractShareName(
  45. IN LPWSTR pszUNCPath,
  46. OUT LPWSTR pszShareName
  47. );
  48. DWORD
  49. NwIsServerInDefaultTree(
  50. IN LPWSTR pszFullServerName,
  51. OUT BOOL *pfInDefaultTree
  52. );
  53. DWORD
  54. NwIsServerOrTreeAttached(
  55. IN LPWSTR pszServerName,
  56. OUT BOOL *pfAttached,
  57. OUT BOOL *pfAuthenticated
  58. );
  59. DWORD
  60. NwGetConnectionInformation(
  61. IN LPWSTR pszName,
  62. OUT LPBYTE Buffer,
  63. IN DWORD BufferSize
  64. );
  65. DWORD
  66. NwGetConnectionStatus(
  67. IN LPWSTR pszServerName,
  68. IN OUT PDWORD_PTR ResumeKey,
  69. OUT LPBYTE *Buffer,
  70. OUT PDWORD EntriesRead
  71. );
  72. DWORD
  73. NwGetNdsVolumeInfo(
  74. IN LPWSTR pszName,
  75. OUT LPWSTR pszServerBuffer,
  76. IN WORD wServerBufferSize, // in bytes
  77. OUT LPWSTR pszVolumeBuffer,
  78. IN WORD wVolumeBufferSize // in bytes
  79. );
  80. DWORD
  81. NwOpenAndGetTreeInfo(
  82. LPWSTR pszNdsUNCPath,
  83. HANDLE *phTreeConn,
  84. DWORD *pdwOid
  85. );
  86. DWORD
  87. NwGetConnectedTrees(
  88. IN LPWSTR pszNtUserName,
  89. OUT LPBYTE Buffer,
  90. IN DWORD BufferSize,
  91. OUT LPDWORD lpEntriesRead,
  92. OUT LPDWORD lpUserLUID
  93. );
  94. #ifdef __cplusplus
  95. } // extern "C"
  96. #endif
  97. #endif // _NWUTIL_H_