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.

162 lines
5.1 KiB

  1. // sasu.idl : IDL source for Software Update
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (sasu.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. //////////////////////////////////////////////////////////////////////////
  8. // ISAHelper Interface
  9. //////////////////////////////////////////////////////////////////////////
  10. [
  11. object,
  12. uuid(c1480fa0-13af-11d3-a75a-0050041db0ff),
  13. dual,
  14. pointer_default(unique)
  15. ]
  16. interface ISAHelper : IDispatch
  17. {
  18. [id(1)]
  19. HRESULT ExpandFiles (
  20. [in] BSTR bstrCabFileName,
  21. [in] BSTR bstrDestDir,
  22. [in] BSTR bstrExtractFile
  23. );
  24. [id(2)]
  25. HRESULT VerifySignature (
  26. [in] BSTR bstrCabFileName
  27. );
  28. [id(3)]
  29. HRESULT UploadFile (
  30. [in] BSTR bstrSrcFile,
  31. [in] BSTR bstrDestFile
  32. );
  33. [id(4)]
  34. HRESULT VerifyDiskSpace ();
  35. [id(5)]
  36. HRESULT GetRegistryValue (
  37. [in] BSTR bstrObjectPathName,
  38. [in] BSTR bstrValueName,
  39. [out] VARIANT* pValue,
  40. [in] UINT ulExpectedType
  41. );
  42. [id(6)]
  43. HRESULT SetRegistryValue (
  44. [in] BSTR bstrObjectPathName,
  45. [in] BSTR bstrValueName,
  46. [out] VARIANT* pValue
  47. );
  48. [id(7)]
  49. HRESULT IsBootPartitionReady ();
  50. [id(8)]
  51. HRESULT IsPrimaryOS ();
  52. [id(9)]
  53. HRESULT GetFileSectionKeyValue
  54. (
  55. [in] BSTR bstrFileName,
  56. [in] BSTR bstrSectionName,
  57. [in] BSTR bstrKeyName,
  58. [out,retval]BSTR *pbstrKeyValue
  59. );
  60. [id(10)]
  61. HRESULT VerifyInstallSpace ();
  62. [id(11)]
  63. HRESULT IsWindowsPowered (
  64. [out,retval]VARIANT_BOOL *pvbIsWindowsPowered
  65. );
  66. [propget, id(12)]
  67. HRESULT HostName(
  68. [out, retval] BSTR *pVal
  69. );
  70. [propput, id(12)]
  71. HRESULT HostName(
  72. [in] BSTR newVal
  73. );
  74. [propget, id(13)]
  75. HRESULT IpAddress(
  76. [out, retval] BSTR *pVal
  77. );
  78. [propget, id(14)]
  79. HRESULT SubnetMask(
  80. [out, retval] BSTR *pVal
  81. );
  82. [propget, id(15)]
  83. HRESULT DefaultGateway(
  84. [out, retval] BSTR *pVal
  85. );
  86. [id(16)]
  87. HRESULT SetDynamicIp();
  88. [id(17)]
  89. HRESULT SetStaticIp(
  90. [in]BSTR bstrIp,
  91. [in]BSTR bstrMask,
  92. [in]BSTR bstrGateway
  93. );
  94. [id(18)]
  95. HRESULT ResetAdministratorPassword(
  96. [out,retval]VARIANT_BOOL *pvbSuccess
  97. );
  98. [id(19)]
  99. HRESULT IsDuplicateMachineName(
  100. [in]BSTR bstrMachineName,
  101. [out,retval]VARIANT_BOOL *pvbDuplicate
  102. );
  103. [id(20)]
  104. HRESULT IsPartOfDomain(
  105. [out,retval]VARIANT_BOOL *pvbDomain
  106. );
  107. [id(21)]
  108. HRESULT IsDHCPEnabled(
  109. [out,retval]VARIANT_BOOL *pvbDHCPEnabled
  110. );
  111. [id(22)]
  112. HRESULT GenerateRandomPassword(
  113. [in] LONG lLength,
  114. [out,retval]BSTR *pValPassword
  115. );
  116. [id(23)]
  117. HRESULT SAModifyUserPrivilege(
  118. [in] BSTR bstrPrivilegeName,
  119. [in] VARIANT_BOOL vbEnable,
  120. [out,retval] VARIANT_BOOL * pvbModified
  121. );
  122. };
  123. [
  124. uuid(daff0360-13af-11d3-a75a-0050041db0ff),
  125. version(1.0),
  126. helpstring("SA Helper 1.0 Type Library")
  127. ]
  128. library SAHelperLib
  129. {
  130. importlib("stdole32.tlb");
  131. importlib("stdole2.tlb");
  132. [
  133. uuid(ff1728b0-13ae-11d3-a75a-0050041db0ff),
  134. helpstring("Server Appliance Helper Class")
  135. ]
  136. coclass SAHelper
  137. {
  138. [default] interface ISAHelper;
  139. };
  140. };