IComSoapPublisher.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // System.EnterpriseServices.Internal.IComSoapPublisher.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta ([email protected])
  5. //
  6. // Copyright (C) 2002 Alejandro Sánchez Acosta
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.Runtime.InteropServices;
  30. namespace System.EnterpriseServices.Internal
  31. {
  32. #if NET_1_1
  33. [Guid("d8013eee-730b-45e2-ba24-874b7242c425")]
  34. public interface IComSoapPublisher
  35. {
  36. [DispId(6)]
  37. void CreateMailBox (
  38. [MarshalAs(UnmanagedType.BStr)] string RootMailServer,
  39. [MarshalAs(UnmanagedType.BStr)] string MailBox,
  40. [MarshalAs(UnmanagedType.BStr)] out string SmtpName,
  41. [MarshalAs(UnmanagedType.BStr)] out string Domain,
  42. [MarshalAs(UnmanagedType.BStr)] out string PhysicalPath,
  43. [MarshalAs(UnmanagedType.BStr)] out string Error);
  44. [DispId(4)]
  45. void CreateVirtualRoot (
  46. [MarshalAs(UnmanagedType.BStr)] string Operation,
  47. [MarshalAs(UnmanagedType.BStr)] string FullUrl,
  48. [MarshalAs(UnmanagedType.BStr)] out string BaseUrl,
  49. [MarshalAs(UnmanagedType.BStr)] out string VirtualRoot,
  50. [MarshalAs(UnmanagedType.BStr)] out string PhysicalPath,
  51. [MarshalAs(UnmanagedType.BStr)] out string Error);
  52. [DispId(7)]
  53. void DeleteMailBox (
  54. [MarshalAs(UnmanagedType.BStr)] string RootMailServer,
  55. [MarshalAs(UnmanagedType.BStr)] string MailBox,
  56. [MarshalAs(UnmanagedType.BStr)] out string Error);
  57. [DispId(5)]
  58. void DeleteVirtualRoot (
  59. [MarshalAs(UnmanagedType.BStr)] string RootWebServer,
  60. [MarshalAs(UnmanagedType.BStr)] string FullUrl,
  61. [MarshalAs(UnmanagedType.BStr)] out string Error);
  62. [DispId(13)]
  63. void GacInstall ([MarshalAs(UnmanagedType.BStr)] string AssemblyPath);
  64. [DispId(14)]
  65. void GacRemove ([MarshalAs(UnmanagedType.BStr)] string AssemblyPath);
  66. [DispId(15)]
  67. void GetAssemblyNameForCache (
  68. [MarshalAs(UnmanagedType.BStr)] string TypeLibPath,
  69. [MarshalAs(UnmanagedType.BStr)] out string CachePath);
  70. [return: MarshalAs(UnmanagedType.BStr)]
  71. [DispId(10)]
  72. string GetTypeNameFromProgId (
  73. [MarshalAs(UnmanagedType.BStr)] string AssemblyPath,
  74. [MarshalAs(UnmanagedType.BStr)] string ProgId);
  75. [DispId(9)]
  76. void ProcessClientTlb (
  77. [MarshalAs(UnmanagedType.BStr)] string ProgId,
  78. [MarshalAs(UnmanagedType.BStr)] string SrcTlbPath,
  79. [MarshalAs(UnmanagedType.BStr)] string PhysicalPath,
  80. [MarshalAs(UnmanagedType.BStr)] string VRoot,
  81. [MarshalAs(UnmanagedType.BStr)] string BaseUrl,
  82. [MarshalAs(UnmanagedType.BStr)] string Mode,
  83. [MarshalAs(UnmanagedType.BStr)] string Transport,
  84. [MarshalAs(UnmanagedType.BStr)] out string AssemblyName,
  85. [MarshalAs(UnmanagedType.BStr)] out string TypeName,
  86. [MarshalAs(UnmanagedType.BStr)] out string Error);
  87. [DispId(8)]
  88. void ProcessServerTlb (
  89. [MarshalAs(UnmanagedType.BStr)] string ProgId,
  90. [MarshalAs(UnmanagedType.BStr)] string SrcTlbPath,
  91. [MarshalAs(UnmanagedType.BStr)] string PhysicalPath,
  92. [MarshalAs(UnmanagedType.BStr)] string Operation,
  93. [MarshalAs(UnmanagedType.BStr)] out string AssemblyName,
  94. [MarshalAs(UnmanagedType.BStr)] out string TypeName,
  95. [MarshalAs(UnmanagedType.BStr)] out string Error);
  96. [DispId(11)]
  97. void RegisterAssembly ([MarshalAs(UnmanagedType.BStr)] string AssemblyPath);
  98. [DispId(12)]
  99. void UnRegisterAssembly ([MarshalAs(UnmanagedType.BStr)] string AssemblyPath);
  100. }
  101. #endif
  102. }