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.

83 lines
1.9 KiB

  1. #ifndef __DFS_BLOB_INFO__
  2. #define __DFS_BLOB_INFO__
  3. #define DFS_REGISTRY_DATA_TYPE REG_BINARY
  4. typedef struct _DFS_NAME_INFORMATION_
  5. {
  6. PVOID pData;
  7. ULONG DataSize;
  8. UNICODE_STRING Prefix;
  9. UNICODE_STRING ShortPrefix;
  10. GUID VolumeId;
  11. ULONG State;
  12. ULONG Type;
  13. UNICODE_STRING Comment;
  14. FILETIME PrefixTimeStamp;
  15. FILETIME StateTimeStamp;
  16. FILETIME CommentTimeStamp;
  17. ULONG Timeout;
  18. ULONG Version;
  19. FILETIME LastModifiedTime;
  20. } DFS_NAME_INFORMATION, *PDFS_NAME_INFORMATION;
  21. //
  22. // Defines for ReplicaState.
  23. //
  24. #define REPLICA_STORAGE_STATE_OFFLINE 0x1
  25. typedef struct _DFS_REPLICA_INFORMATION__
  26. {
  27. PVOID pData;
  28. ULONG DataSize;
  29. FILETIME ReplicaTimeStamp;
  30. ULONG ReplicaState;
  31. ULONG ReplicaType;
  32. UNICODE_STRING ServerName;
  33. UNICODE_STRING ShareName;
  34. } DFS_REPLICA_INFORMATION, *PDFS_REPLICA_INFORMATION;
  35. typedef struct _DFS_REPLICA_LIST_INFORMATION_
  36. {
  37. PVOID pData;
  38. ULONG DataSize;
  39. ULONG ReplicaCount;
  40. DFS_REPLICA_INFORMATION *pReplicas;
  41. } DFS_REPLICA_LIST_INFORMATION, *PDFS_REPLICA_LIST_INFORMATION;
  42. VOID
  43. DumpNameInformation(
  44. PDFS_NAME_INFORMATION pNameInfo);
  45. VOID
  46. DumpReplicaInformation(
  47. PDFS_REPLICA_LIST_INFORMATION pReplicaInfo);
  48. DFSSTATUS
  49. PackGetStandaloneNameInformation(
  50. IN PDFS_NAME_INFORMATION pDfsNameInfo,
  51. IN OUT PVOID *ppBuffer,
  52. IN OUT PULONG pSizeRemaining);
  53. DFSSTATUS
  54. PackGetReplicaInformation(
  55. PDFS_REPLICA_LIST_INFORMATION pReplicaListInfo,
  56. PVOID *ppBuffer,
  57. PULONG pSizeRemaining);
  58. DFSSTATUS
  59. PackSetStandaloneNameInformation(
  60. IN PDFS_NAME_INFORMATION pDfsNameInfo,
  61. IN OUT PVOID *ppBuffer,
  62. IN OUT PULONG pSizeRemaining);
  63. ULONG
  64. PackSizeNameInformation(
  65. IN PDFS_NAME_INFORMATION pDfsNameInfo );
  66. #endif