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.

66 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. DfsPath.h
  5. Abstract:
  6. This is the header file for Dfs Shell path handling modules for the Dfs Shell
  7. Extension object.
  8. Author:
  9. Constancio Fernandes (ferns@qspl.stpp.soft.net) 12-Jan-1998
  10. Environment:
  11. NT only.
  12. --*/
  13. //--------------------------------------------------------------------------------------------
  14. #ifndef _DFS_PATHS_H
  15. #define _DFS_PATHS_H
  16. enum SHL_DFS_REPLICA_STATE
  17. {
  18. SHL_DFS_REPLICA_STATE_ACTIVE_UNKNOWN = 0,
  19. SHL_DFS_REPLICA_STATE_ACTIVE_OK,
  20. SHL_DFS_REPLICA_STATE_ACTIVE_UNREACHABLE,
  21. SHL_DFS_REPLICA_STATE_UNKNOWN, // online
  22. SHL_DFS_REPLICA_STATE_OK, // online
  23. SHL_DFS_REPLICA_STATE_UNREACHABLE // online
  24. };
  25. #include "atlbase.h"
  26. class DFS_ALTERNATES
  27. {
  28. public:
  29. CComBSTR bstrAlternatePath;
  30. CComBSTR bstrServer;
  31. CComBSTR bstrShare;
  32. enum SHL_DFS_REPLICA_STATE ReplicaState;
  33. DFS_ALTERNATES():ReplicaState(SHL_DFS_REPLICA_STATE_UNKNOWN)
  34. {
  35. }
  36. ~DFS_ALTERNATES()
  37. {
  38. }
  39. };
  40. typedef DFS_ALTERNATES *LPDFS_ALTERNATES;
  41. // Checks if the directory path is a Dfs Path or not.
  42. bool IsDfsPath
  43. (
  44. LPTSTR i_lpszDirPath,
  45. LPTSTR* o_pszEntryPath,
  46. LPDFS_ALTERNATES** o_pppDfsAlternates
  47. );
  48. #endif //#ifndef _DFS_PATHS_H