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.

87 lines
2.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // sainstallcom.idl
  7. //
  8. // Description:
  9. // IDL source for SaInstall.dll
  10. // This interface is implemented by the class SaInstall
  11. // defined in SaInstall.h and implemented in SaInstall.cpp
  12. //
  13. // This file will be processed by the MIDL tool to
  14. // produce the type library (sainstallcom.tlb) and marshalling code.
  15. //
  16. // Documentation:
  17. // SaInstall2.2.doc owner: clarkn
  18. //
  19. // History:
  20. // Travis Nielsen travisn 23-JUL-2001 created
  21. // Travis Nielsen travisn 2-AUG-2001 added comments
  22. //
  23. import "oaidl.idl";
  24. import "ocidl.idl";
  25. //
  26. // Type definition for Server Appliance types to be installed or uninstalled
  27. // CUSTOM is not currently implemented or used in any way
  28. //
  29. typedef enum {NAS, WEB, CUSTOM} SA_TYPE;
  30. //
  31. // Define the ISaInstall interface
  32. //
  33. [
  34. object,
  35. uuid(F4DEDEF3-4D83-4516-BC1E-103A63F5F014),
  36. dual,
  37. helpstring("ISaInstall Interface"),
  38. pointer_default(unique)
  39. ]
  40. interface ISaInstall : IDispatch
  41. {
  42. //Detect if any type of SAK solution is currently installed
  43. HRESULT SAAlreadyInstalled(
  44. [in] SA_TYPE installedType,
  45. [out, retval] VARIANT_BOOL* pbInstalled);
  46. //Installs a Server Appliance solution
  47. HRESULT SAInstall(
  48. [in] SA_TYPE installType, //Determines which type of solution to install
  49. [in] BSTR bstrDiskName,//The name of the CD that needs to be inserted
  50. [in] VARIANT_BOOL bDispError, //Whether the component displays error dialogs.
  51. [in] VARIANT_BOOL bUnattended, //Whether the component displays any UI.
  52. [out, retval] BSTR* pbstrErrorString);//Error string returned if install is not successful
  53. //UnInstalls a specific Server Appliance solution
  54. HRESULT SAUninstall(
  55. [in] SA_TYPE installType, //Determines which type of solution to uninstall
  56. [out, retval] BSTR* pbstrErrorString);//Error string returned if install is not successful
  57. };
  58. //
  59. // Define the library
  60. //
  61. [
  62. uuid(B9DB4657-242D-46e4-8911-34E19629B621),
  63. version(1.0),
  64. helpstring("SaInstall 1.0 Type Library")
  65. ]
  66. library SAINSTALLCOMLib
  67. {
  68. importlib("stdole32.tlb");
  69. importlib("stdole2.tlb");
  70. [
  71. uuid(142B8185-53AE-45b3-888F-C9835B156CA9),
  72. helpstring("SaInstall Class")
  73. ]
  74. coclass SaInstall
  75. {
  76. [default] interface ISaInstall;
  77. };
  78. };