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.

160 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. ExpStub.c
  5. Abstract:
  6. Client stubs of the replicator service export directory APIs.
  7. Author:
  8. John Rogers (JohnRo) 17-Dec-1991
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. 17-Dec-1991 JohnRo
  13. Created dummy file.
  14. 17-Dec-1991 JohnRo
  15. Actually include my header file (LmRepl.h) so we can test against it.
  16. 17-Jan-1992 JohnRo
  17. Wrote stubs for first 3 RPCable APIs.
  18. 20-Jan-1992 JohnRo
  19. Added import APIs, config APIs, and rest of export APIs.
  20. 27-Jan-1992 JohnRo
  21. Split stubs into 3 files: ReplStub.c, ImpStub.c, and ExpStub.c.
  22. Changed to use LPTSTR etc.
  23. Added handling of getinfo and setinfo APIs when service isn't started.
  24. Tell NetRpc.h macros that we need replicator service.
  25. 30-Jan-1992 JohnRo
  26. Made changes suggested by PC-LINT.
  27. 03-Feb-1992 JohnRo
  28. Corrected NetReplExportDirGetInfo's handling of level errors.
  29. 13-Feb-1992 JohnRo
  30. Implement NetReplExportDirDel() when svc is not running.
  31. Added debug messages when processing APIs without service running.
  32. 20-Feb-1992 JohnRo
  33. Use ExportDirIsLevelValid() where possible.
  34. Fixed enum when array is empty.
  35. Fixed forgotten net handle closes in enum code.
  36. Make NetRepl{Export,Import}Dir{Lock,Unlock} work w/o svc running.
  37. Fixed usage of union/container.
  38. 15-Mar-1992 JohnRo
  39. Update registry with new values.
  40. 23-Mar-1992 JohnRo
  41. Fixed enum when service is running.
  42. 06-Apr-1992 JohnRo
  43. Fixed trivial MIPS compile problem.
  44. 28-Apr-1992 JohnRo
  45. Fixed another trivial MIPS compile problem.
  46. 19-Jul-1992 JohnRo
  47. RAID 10503: srv mgr: repl dialog doesn't come up.
  48. Use PREFIX_ equates.
  49. 27-Jul-1992 JohnRo
  50. RAID 2274: repl svc should impersonate caller.
  51. 26-Aug-1992 JohnRo
  52. RAID 3602: NetReplExportDirSetInfo fails regardless of svc status.
  53. 29-Sep-1992 JohnRo
  54. RAID 7962: Repl APIs in wrong role kill svc.
  55. Also fix remote repl admin.
  56. 05-Apr-1993 JohnRo
  57. Use NetpKdPrint() where possible.
  58. Made changes suggested by PC-LINT 5.0
  59. Removed some obsolete comments about retrying APIs.
  60. 20-Jan-2000 JSchwart
  61. No longer supported
  62. --*/
  63. #include <windows.h>
  64. #include <winerror.h>
  65. #include <lmcons.h> // NET_API_STATUS, etc.
  66. NET_API_STATUS NET_API_FUNCTION
  67. NetReplExportDirAdd (
  68. IN LPCWSTR UncServerName OPTIONAL,
  69. IN DWORD Level, // Must be 1.
  70. IN const LPBYTE Buf,
  71. OUT LPDWORD ParmError OPTIONAL
  72. )
  73. {
  74. return ERROR_NOT_SUPPORTED;
  75. }
  76. NET_API_STATUS NET_API_FUNCTION
  77. NetReplExportDirDel (
  78. IN LPCWSTR UncServerName OPTIONAL,
  79. IN LPCWSTR DirName
  80. )
  81. {
  82. return ERROR_NOT_SUPPORTED;
  83. }
  84. NET_API_STATUS NET_API_FUNCTION
  85. NetReplExportDirEnum (
  86. IN LPCWSTR UncServerName OPTIONAL,
  87. IN DWORD Level,
  88. OUT LPBYTE * BufPtr,
  89. IN DWORD PrefMaxSize,
  90. OUT LPDWORD EntriesRead,
  91. OUT LPDWORD TotalEntries,
  92. IN OUT LPDWORD ResumeHandle OPTIONAL
  93. )
  94. {
  95. return ERROR_NOT_SUPPORTED;
  96. }
  97. NET_API_STATUS NET_API_FUNCTION
  98. NetReplExportDirGetInfo (
  99. IN LPCWSTR UncServerName OPTIONAL,
  100. IN LPCWSTR DirName,
  101. IN DWORD Level,
  102. OUT LPBYTE * BufPtr
  103. )
  104. {
  105. return ERROR_NOT_SUPPORTED;
  106. }
  107. NET_API_STATUS NET_API_FUNCTION
  108. NetReplExportDirLock (
  109. IN LPCWSTR UncServerName OPTIONAL,
  110. IN LPCWSTR DirName
  111. )
  112. {
  113. return ERROR_NOT_SUPPORTED;
  114. }
  115. NET_API_STATUS NET_API_FUNCTION
  116. NetReplExportDirSetInfo (
  117. IN LPCWSTR UncServerName OPTIONAL,
  118. IN LPCWSTR DirName,
  119. IN DWORD Level,
  120. IN const LPBYTE Buf,
  121. OUT LPDWORD ParmError OPTIONAL
  122. )
  123. {
  124. return ERROR_NOT_SUPPORTED;
  125. }
  126. NET_API_STATUS NET_API_FUNCTION
  127. NetReplExportDirUnlock (
  128. IN LPCWSTR UncServerName OPTIONAL,
  129. IN LPCWSTR DirName,
  130. IN DWORD UnlockForce
  131. )
  132. {
  133. return ERROR_NOT_SUPPORTED;
  134. }