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.

138 lines
2.7 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1992, Microsoft Corporation.
  4. //
  5. // File: UPKT.H
  6. //
  7. // Contents: This module defines the prototypes for user mode access
  8. // to the local partition knowledge table (PKT).
  9. //
  10. // Functions:
  11. //
  12. // History: alanw 21 Sep 1992 Added prototypes from dotdfs.h.
  13. //
  14. //-----------------------------------------------------------------------------
  15. #ifndef _UPKT_
  16. #define _UPKT_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include "pkt.h"
  21. NTSTATUS
  22. PktOpen(
  23. IN OUT PHANDLE PktHandle,
  24. IN ACCESS_MASK DesiredAccess,
  25. IN ULONG ShareAccess,
  26. IN PUNICODE_STRING DfsNtPathName OPTIONAL
  27. );
  28. VOID
  29. PktClose(
  30. IN HANDLE PktHandle
  31. );
  32. NTSTATUS
  33. PktCreateEntry(
  34. IN HANDLE PktHandle,
  35. IN ULONG EntryType,
  36. IN PDFS_PKT_ENTRY_ID EntryId,
  37. IN PDFS_PKT_ENTRY_INFO EntryInfo OPTIONAL,
  38. IN ULONG CreateDisposition
  39. );
  40. NTSTATUS
  41. PktCreateSubordinateEntry(
  42. IN HANDLE PktHandle,
  43. IN PDFS_PKT_ENTRY_ID SuperiorId,
  44. IN ULONG SubordinateType,
  45. IN PDFS_PKT_ENTRY_ID SubordinateId,
  46. IN PDFS_PKT_ENTRY_INFO SubordinateInfo OPTIONAL,
  47. IN ULONG CreateDisposition
  48. );
  49. NTSTATUS
  50. PktDestroyEntry(
  51. IN HANDLE PktHandle,
  52. IN DFS_PKT_ENTRY_ID victim
  53. );
  54. NTSTATUS
  55. PktGetRelationInfo(
  56. IN HANDLE PktHandle,
  57. IN PDFS_PKT_ENTRY_ID EntryId,
  58. IN OUT PDFS_PKT_RELATION_INFO relationInfo
  59. );
  60. NTSTATUS
  61. PktValidateLocalVolumeInfo(
  62. IN PDFS_PKT_RELATION_INFO relationInfo);
  63. NTSTATUS
  64. PktPruneLocalPartition(
  65. IN PDFS_PKT_ENTRY_ID EntryId);
  66. NTSTATUS
  67. PktIsChildnameLegal(
  68. IN PWCHAR pwszParent,
  69. IN PWCHAR pwszChild,
  70. IN GUID *pidChild
  71. );
  72. NTSTATUS
  73. PktGetEntryType(
  74. IN PWSTR pwszPrefix,
  75. IN PULONG pType);
  76. NTSTATUS
  77. DfsDeleteLocalPartition(
  78. IN const PDFS_PKT_ENTRY_ID VolumeId);
  79. NTSTATUS
  80. DfsDCSetVolumeState(
  81. IN const PDFS_PKT_ENTRY_ID VolumeId,
  82. IN const ULONG State);
  83. NTSTATUS
  84. DfsSetVolumeTimeout(
  85. IN const PDFS_PKT_ENTRY_ID VolumeId,
  86. IN const ULONG State);
  87. NTSTATUS
  88. DfsSetServiceState(
  89. IN PDFS_PKT_ENTRY_ID VolumeId,
  90. IN PWSTR ServiceName,
  91. IN ULONG State);
  92. NTSTATUS
  93. DfsSetServerInfo(
  94. IN PDFS_PKT_ENTRY_ID pId,
  95. IN PUNICODE_STRING DfsNtPathName
  96. );
  97. NTSTATUS
  98. DfsCheckStgIdInUse(
  99. IN PDFS_PKT_ENTRY_ID pEntryId
  100. );
  101. NTSTATUS
  102. DfsCreateSiteEntry(
  103. IN PCHAR Arg,
  104. IN ULONG size
  105. );
  106. NTSTATUS
  107. DfsDeleteSiteEntry(
  108. IN PCHAR Arg,
  109. IN ULONG size
  110. );
  111. #ifdef __cplusplus
  112. }
  113. #endif
  114. #endif //_UPKT_