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.

88 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1991-1993 Microsoft Corporation
  3. Module Name:
  4. ReplStub.c
  5. Abstract:
  6. Client stubs of the replicator service config 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. 18-Feb-1992 JohnRo
  28. NetReplGetInfo() does too much with bad info level.
  29. Fixed usage of union/container.
  30. Added code for NetReplSetInfo() when service is not started.
  31. 15-Mar-1992 JohnRo
  32. Added support for setinfo info levels in ReplConfigIsLevelValid().
  33. 19-Jul-1992 JohnRo
  34. RAID 10503: srv mgr: repl dialog doesn't come up.
  35. Use PREFIX_ equates.
  36. 20-Jul-1992 JohnRo
  37. RAID 2252: repl should prevent export on Windows/NT.
  38. 14-Aug-1992 JohnRo
  39. RAID 3601: repl APIs should checked import & export lists.
  40. Use PREFIX_NETAPI instead of PREFIX_REPL for repl API stubs.
  41. 01-Dec-1992 JohnRo
  42. RAID 3844: remote NetReplSetInfo uses local machine type.
  43. 05-Jan-1993 JohnRo
  44. Repl WAN support (get rid of repl name list limits).
  45. Made changes suggested by PC-LINT 5.0
  46. Corrected debug bit usage.
  47. Removed some obsolete comments about retrying APIs.
  48. 20-Jan-2000 JSchwart
  49. No longer supported
  50. --*/
  51. #include <windows.h>
  52. #include <winerror.h>
  53. #include <lmcons.h>
  54. NET_API_STATUS NET_API_FUNCTION
  55. NetReplGetInfo (
  56. IN LPCWSTR UncServerName OPTIONAL,
  57. IN DWORD Level,
  58. OUT LPBYTE * BufPtr
  59. )
  60. {
  61. return ERROR_NOT_SUPPORTED;
  62. }
  63. NET_API_STATUS NET_API_FUNCTION
  64. NetReplSetInfo (
  65. IN LPCWSTR UncServerName OPTIONAL,
  66. IN DWORD Level,
  67. IN const LPBYTE Buf,
  68. OUT LPDWORD ParmError OPTIONAL
  69. )
  70. {
  71. return ERROR_NOT_SUPPORTED;
  72. }