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.

143 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. ImpStub.c
  5. Abstract:
  6. Client stubs of the replicator service import 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. 05-Feb-1992 JohnRo
  26. Added debug messages when service is not started.
  27. 13-Feb-1992 JohnRo
  28. Moved section name equates to ConfName.h.
  29. 21-Feb-1992 JohnRo
  30. Make NetReplImportDir{Del,Enum,Get,Lock,Unlock} work w/o svc running.
  31. Fixed usage of union/container.
  32. 21-Feb-1992 JohnRo
  33. Changed ImportDirBuildApiRecord() so master name is not a UNC name.
  34. 27-Feb-1992 JohnRo
  35. Preserve state from last time service was running.
  36. Changed state not started to state never replicated.
  37. 15-Mar-1992 JohnRo
  38. Update registry with new values.
  39. 23-Mar-1992 JohnRo
  40. Fixed enum when service is running.
  41. 09-Jul-1992 JohnRo
  42. RAID 10503: srv mgr: repl dialog doesn't come up.
  43. Avoid compiler warnings.
  44. Use PREFIX_ equates.
  45. 27-Jul-1992 JohnRo
  46. RAID 2274: repl svc should impersonate caller.
  47. 09-Nov-1992 JohnRo
  48. RAID 7962: Repl APIs in wrong role kill svc.
  49. Fix remote repl admin.
  50. 02-Apr-1993 JohnRo
  51. Use NetpKdPrint() where possible.
  52. Made changes suggested by PC-LINT 5.0
  53. Removed some obsolete comments about retrying APIs.
  54. 20-Jan-2000 JSchwart
  55. No longer supported
  56. --*/
  57. #include <windows.h>
  58. #include <winerror.h>
  59. #include <lmcons.h> // NET_API_STATUS, etc.
  60. NET_API_STATUS NET_API_FUNCTION
  61. NetReplImportDirAdd (
  62. IN LPCWSTR UncServerName OPTIONAL,
  63. IN DWORD Level,
  64. IN const LPBYTE Buf,
  65. OUT LPDWORD ParmError OPTIONAL // Set implicitly by NetpSetParmError().
  66. )
  67. {
  68. return ERROR_NOT_SUPPORTED;
  69. }
  70. NET_API_STATUS NET_API_FUNCTION
  71. NetReplImportDirDel (
  72. IN LPCWSTR UncServerName OPTIONAL,
  73. IN LPCWSTR DirName
  74. )
  75. {
  76. return ERROR_NOT_SUPPORTED;
  77. }
  78. NET_API_STATUS NET_API_FUNCTION
  79. NetReplImportDirEnum (
  80. IN LPCWSTR UncServerName OPTIONAL,
  81. IN DWORD Level,
  82. OUT LPBYTE * BufPtr,
  83. IN DWORD PrefMaxSize,
  84. OUT LPDWORD EntriesRead,
  85. OUT LPDWORD TotalEntries,
  86. IN OUT LPDWORD ResumeHandle OPTIONAL
  87. )
  88. {
  89. return ERROR_NOT_SUPPORTED;
  90. }
  91. NET_API_STATUS NET_API_FUNCTION
  92. NetReplImportDirGetInfo (
  93. IN LPCWSTR UncServerName OPTIONAL,
  94. IN LPCWSTR DirName,
  95. IN DWORD Level,
  96. OUT LPBYTE * BufPtr
  97. )
  98. {
  99. return ERROR_NOT_SUPPORTED;
  100. }
  101. NET_API_STATUS NET_API_FUNCTION
  102. NetReplImportDirLock (
  103. IN LPCWSTR UncServerName OPTIONAL,
  104. IN LPCWSTR DirName
  105. )
  106. {
  107. return ERROR_NOT_SUPPORTED;
  108. }
  109. NET_API_STATUS NET_API_FUNCTION
  110. NetReplImportDirUnlock (
  111. IN LPCWSTR UncServerName OPTIONAL,
  112. IN LPCWSTR DirName,
  113. IN DWORD UnlockForce
  114. )
  115. {
  116. return ERROR_NOT_SUPPORTED;
  117. }