WbemScripting_TLB.pas
上传用户:lyghuaxia
上传日期:2022-06-27
资源大小:659k
文件大小:200k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit WbemScripting_TLB;
  2. //{$WARN UNSAFE_TYPE off}
  3. //{$WARN UNSAFE_CAST off}
  4. //{$WARN UNSAFE_CODE off}
  5. //{$WARN SYMBOL_PLATFORM OFF}
  6. //{$WARN SYMBOL_LIBRARY OFF}
  7. //{$WARN SYMBOL_DEPRECATED OFF}
  8. // ************************************************************************ //
  9. // WARNING                                                                    
  10. // -------                                                                    
  11. // The types declared in this file were generated from data read from a       
  12. // Type Library. If this type library is explicitly or indirectly (via        
  13. // another type library referring to this type library) re-imported, or the   
  14. // 'Refresh' command of the Type Library Editor activated while editing the   
  15. // Type Library, the contents of this file will be regenerated and all        
  16. // manual modifications will be lost.                                         
  17. // ************************************************************************ //
  18. // PASTLWTR : $Revision:   1.130.1.0.1.0.1.6  $
  19. // File generated on 09/07/2003 16:17:52 from Type Library described below.
  20. // ************************************************************************  //
  21. // Type Lib: D:WINDOWSSystem32wbemwbemdisp.TLB (1)
  22. // LIBID: {565783C6-CB41-11D1-8B02-00600806D9B6}
  23. // LCID: 0
  24. // Helpfile: 
  25. // DepndLst: 
  26. //   (1) v2.0 stdole, (D:WINDOWSSystem32stdole2.tlb)
  27. //   (2) v4.0 StdVCL, (D:WINDOWSSystem32STDVCL40.DLL)
  28. // Errors:
  29. //   Hint: Member 'Class' of 'ISWbemObjectPath' changed to 'Class_'
  30. //   Hint: Member 'Object' of 'ISWbemRefreshableItem' changed to 'Object_'
  31. //   Error creating palette bitmap of (TSWbemLocator) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  32. //   Error creating palette bitmap of (TSWbemNamedValueSet) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  33. //   Error creating palette bitmap of (TSWbemObjectPath) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  34. //   Error creating palette bitmap of (TSWbemLastError) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  35. //   Error creating palette bitmap of (TSWbemSink) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  36. //   Error creating palette bitmap of (TSWbemDateTime) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  37. //   Error creating palette bitmap of (TSWbemRefresher) : Server D:WINDOWSSystem32wbemwbemdisp.dll contains no icons
  38. // ************************************************************************ //
  39. // *************************************************************************//
  40. // NOTE:                                                                      
  41. // Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties  
  42. // which return objects that may need to be explicitly created via a function 
  43. // call prior to any access via the property. These items have been disabled  
  44. // in order to prevent accidental use from within the object inspector. You   
  45. // may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively   
  46. // removing them from the $IFDEF blocks. However, such items must still be    
  47. // programmatically created via a method of the appropriate CoClass before    
  48. // they can be used.                                                          
  49. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
  50. {$WARN SYMBOL_PLATFORM OFF}
  51. {$WRITEABLECONST ON}
  52. {$VARPROPSETTER ON}
  53. interface
  54. uses Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;
  55. // *********************************************************************//
  56. // GUIDS declared in the TypeLibrary. Following prefixes are used:        
  57. //   Type Libraries     : LIBID_xxxx                                      
  58. //   CoClasses          : CLASS_xxxx                                      
  59. //   DISPInterfaces     : DIID_xxxx                                       
  60. //   Non-DISP interfaces: IID_xxxx                                        
  61. // *********************************************************************//
  62. const
  63.   // TypeLibrary Major and minor versions
  64.   WbemScriptingMajorVersion = 1;
  65.   WbemScriptingMinorVersion = 2;
  66.   LIBID_WbemScripting: TGUID = '{565783C6-CB41-11D1-8B02-00600806D9B6}';
  67.   IID_ISWbemServices: TGUID = '{76A6415C-CB41-11D1-8B02-00600806D9B6}';
  68.   IID_ISWbemObject: TGUID = '{76A6415A-CB41-11D1-8B02-00600806D9B6}';
  69.   IID_ISWbemObjectPath: TGUID = '{5791BC27-CE9C-11D1-97BF-0000F81E849C}';
  70.   IID_ISWbemNamedValueSet: TGUID = '{CF2376EA-CE8C-11D1-8B05-00600806D9B6}';
  71.   IID_ISWbemNamedValue: TGUID = '{76A64164-CB41-11D1-8B02-00600806D9B6}';
  72.   IID_ISWbemSecurity: TGUID = '{B54D66E6-2287-11D2-8B33-00600806D9B6}';
  73.   IID_ISWbemPrivilegeSet: TGUID = '{26EE67BF-5804-11D2-8B4A-00600806D9B6}';
  74.   IID_ISWbemPrivilege: TGUID = '{26EE67BD-5804-11D2-8B4A-00600806D9B6}';
  75.   IID_ISWbemObjectSet: TGUID = '{76A6415F-CB41-11D1-8B02-00600806D9B6}';
  76.   IID_ISWbemQualifierSet: TGUID = '{9B16ED16-D3DF-11D1-8B08-00600806D9B6}';
  77.   IID_ISWbemQualifier: TGUID = '{79B05932-D3B7-11D1-8B06-00600806D9B6}';
  78.   IID_ISWbemPropertySet: TGUID = '{DEA0A7B2-D4BA-11D1-8B09-00600806D9B6}';
  79.   IID_ISWbemProperty: TGUID = '{1A388F98-D4BA-11D1-8B09-00600806D9B6}';
  80.   IID_ISWbemMethodSet: TGUID = '{C93BA292-D955-11D1-8B09-00600806D9B6}';
  81.   IID_ISWbemMethod: TGUID = '{422E8E90-D955-11D1-8B09-00600806D9B6}';
  82.   IID_ISWbemEventSource: TGUID = '{27D54D92-0EBE-11D2-8B22-00600806D9B6}';
  83.   IID_ISWbemLocator: TGUID = '{76A6415B-CB41-11D1-8B02-00600806D9B6}';
  84.   IID_ISWbemLastError: TGUID = '{D962DB84-D4BB-11D1-8B09-00600806D9B6}';
  85.   DIID_ISWbemSinkEvents: TGUID = '{75718CA0-F029-11D1-A1AC-00C04FB6C223}';
  86.   IID_ISWbemSink: TGUID = '{75718C9F-F029-11D1-A1AC-00C04FB6C223}';
  87.   IID_ISWbemServicesEx: TGUID = '{D2F68443-85DC-427E-91D8-366554CC754C}';
  88.   IID_ISWbemObjectEx: TGUID = '{269AD56A-8A67-4129-BC8C-0506DCFE9880}';
  89.   IID_ISWbemDateTime: TGUID = '{5E97458A-CF77-11D3-B38F-00105A1F473A}';
  90.   IID_ISWbemRefresher: TGUID = '{14D8250E-D9C2-11D3-B38F-00105A1F473A}';
  91.   IID_ISWbemRefreshableItem: TGUID = '{5AD4BF92-DAAB-11D3-B38F-00105A1F473A}';
  92.   CLASS_SWbemLocator: TGUID = '{76A64158-CB41-11D1-8B02-00600806D9B6}';
  93.   CLASS_SWbemNamedValueSet: TGUID = '{9AED384E-CE8B-11D1-8B05-00600806D9B6}';
  94.   CLASS_SWbemObjectPath: TGUID = '{5791BC26-CE9C-11D1-97BF-0000F81E849C}';
  95.   CLASS_SWbemLastError: TGUID = '{C2FEEEAC-CFCD-11D1-8B05-00600806D9B6}';
  96.   CLASS_SWbemSink: TGUID = '{75718C9A-F029-11D1-A1AC-00C04FB6C223}';
  97.   CLASS_SWbemDateTime: TGUID = '{47DFBE54-CF76-11D3-B38F-00105A1F473A}';
  98.   CLASS_SWbemRefresher: TGUID = '{D269BF5C-D9C1-11D3-B38F-00105A1F473A}';
  99.   CLASS_SWbemServices: TGUID = '{04B83D63-21AE-11D2-8B33-00600806D9B6}';
  100.   CLASS_SWbemServicesEx: TGUID = '{62E522DC-8CF3-40A8-8B2E-37D595651E40}';
  101.   CLASS_SWbemObject: TGUID = '{04B83D62-21AE-11D2-8B33-00600806D9B6}';
  102.   CLASS_SWbemObjectEx: TGUID = '{D6BDAFB2-9435-491F-BB87-6AA0F0BC31A2}';
  103.   CLASS_SWbemObjectSet: TGUID = '{04B83D61-21AE-11D2-8B33-00600806D9B6}';
  104.   CLASS_SWbemNamedValue: TGUID = '{04B83D60-21AE-11D2-8B33-00600806D9B6}';
  105.   CLASS_SWbemQualifier: TGUID = '{04B83D5F-21AE-11D2-8B33-00600806D9B6}';
  106.   CLASS_SWbemQualifierSet: TGUID = '{04B83D5E-21AE-11D2-8B33-00600806D9B6}';
  107.   CLASS_SWbemProperty: TGUID = '{04B83D5D-21AE-11D2-8B33-00600806D9B6}';
  108.   CLASS_SWbemPropertySet: TGUID = '{04B83D5C-21AE-11D2-8B33-00600806D9B6}';
  109.   CLASS_SWbemMethod: TGUID = '{04B83D5B-21AE-11D2-8B33-00600806D9B6}';
  110.   CLASS_SWbemMethodSet: TGUID = '{04B83D5A-21AE-11D2-8B33-00600806D9B6}';
  111.   CLASS_SWbemEventSource: TGUID = '{04B83D58-21AE-11D2-8B33-00600806D9B6}';
  112.   CLASS_SWbemSecurity: TGUID = '{B54D66E9-2287-11D2-8B33-00600806D9B6}';
  113.   CLASS_SWbemPrivilege: TGUID = '{26EE67BC-5804-11D2-8B4A-00600806D9B6}';
  114.   CLASS_SWbemPrivilegeSet: TGUID = '{26EE67BE-5804-11D2-8B4A-00600806D9B6}';
  115.   CLASS_SWbemRefreshableItem: TGUID = '{8C6854BC-DE4B-11D3-B390-00105A1F473A}';
  116. // *********************************************************************//
  117. // Declaration of Enumerations defined in Type Library                    
  118. // *********************************************************************//
  119. // Constants for enum WbemImpersonationLevelEnum
  120. type
  121.   WbemImpersonationLevelEnum = TOleEnum;
  122. const
  123.   wbemImpersonationLevelAnonymous = $00000001;
  124.   wbemImpersonationLevelIdentify = $00000002;
  125.   wbemImpersonationLevelImpersonate = $00000003;
  126.   wbemImpersonationLevelDelegate = $00000004;
  127. // Constants for enum WbemAuthenticationLevelEnum
  128. type
  129.   WbemAuthenticationLevelEnum = TOleEnum;
  130. const
  131.   wbemAuthenticationLevelDefault = $00000000;
  132.   wbemAuthenticationLevelNone = $00000001;
  133.   wbemAuthenticationLevelConnect = $00000002;
  134.   wbemAuthenticationLevelCall = $00000003;
  135.   wbemAuthenticationLevelPkt = $00000004;
  136.   wbemAuthenticationLevelPktIntegrity = $00000005;
  137.   wbemAuthenticationLevelPktPrivacy = $00000006;
  138. // Constants for enum WbemPrivilegeEnum
  139. type
  140.   WbemPrivilegeEnum = TOleEnum;
  141. const
  142.   wbemPrivilegeCreateToken = $00000001;
  143.   wbemPrivilegePrimaryToken = $00000002;
  144.   wbemPrivilegeLockMemory = $00000003;
  145.   wbemPrivilegeIncreaseQuota = $00000004;
  146.   wbemPrivilegeMachineAccount = $00000005;
  147.   wbemPrivilegeTcb = $00000006;
  148.   wbemPrivilegeSecurity = $00000007;
  149.   wbemPrivilegeTakeOwnership = $00000008;
  150.   wbemPrivilegeLoadDriver = $00000009;
  151.   wbemPrivilegeSystemProfile = $0000000A;
  152.   wbemPrivilegeSystemtime = $0000000B;
  153.   wbemPrivilegeProfileSingleProcess = $0000000C;
  154.   wbemPrivilegeIncreaseBasePriority = $0000000D;
  155.   wbemPrivilegeCreatePagefile = $0000000E;
  156.   wbemPrivilegeCreatePermanent = $0000000F;
  157.   wbemPrivilegeBackup = $00000010;
  158.   wbemPrivilegeRestore = $00000011;
  159.   wbemPrivilegeShutdown = $00000012;
  160.   wbemPrivilegeDebug = $00000013;
  161.   wbemPrivilegeAudit = $00000014;
  162.   wbemPrivilegeSystemEnvironment = $00000015;
  163.   wbemPrivilegeChangeNotify = $00000016;
  164.   wbemPrivilegeRemoteShutdown = $00000017;
  165.   wbemPrivilegeUndock = $00000018;
  166.   wbemPrivilegeSyncAgent = $00000019;
  167.   wbemPrivilegeEnableDelegation = $0000001A;
  168.   wbemPrivilegeManageVolume = $0000001B;
  169. // Constants for enum WbemCimtypeEnum
  170. type
  171.   WbemCimtypeEnum = TOleEnum;
  172. const
  173.   wbemCimtypeSint8 = $00000010;
  174.   wbemCimtypeUint8 = $00000011;
  175.   wbemCimtypeSint16 = $00000002;
  176.   wbemCimtypeUint16 = $00000012;
  177.   wbemCimtypeSint32 = $00000003;
  178.   wbemCimtypeUint32 = $00000013;
  179.   wbemCimtypeSint64 = $00000014;
  180.   wbemCimtypeUint64 = $00000015;
  181.   wbemCimtypeReal32 = $00000004;
  182.   wbemCimtypeReal64 = $00000005;
  183.   wbemCimtypeBoolean = $0000000B;
  184.   wbemCimtypeString = $00000008;
  185.   wbemCimtypeDatetime = $00000065;
  186.   wbemCimtypeReference = $00000066;
  187.   wbemCimtypeChar16 = $00000067;
  188.   wbemCimtypeObject = $0000000D;
  189. // Constants for enum WbemErrorEnum
  190. type
  191.   WbemErrorEnum = TOleEnum;
  192. const
  193.   wbemNoErr = $00000000;
  194.   wbemErrFailed = $80041001;
  195.   wbemErrNotFound = $80041002;
  196.   wbemErrAccessDenied = $80041003;
  197.   wbemErrProviderFailure = $80041004;
  198.   wbemErrTypeMismatch = $80041005;
  199.   wbemErrOutOfMemory = $80041006;
  200.   wbemErrInvalidContext = $80041007;
  201.   wbemErrInvalidParameter = $80041008;
  202.   wbemErrNotAvailable = $80041009;
  203.   wbemErrCriticalError = $8004100A;
  204.   wbemErrInvalidStream = $8004100B;
  205.   wbemErrNotSupported = $8004100C;
  206.   wbemErrInvalidSuperclass = $8004100D;
  207.   wbemErrInvalidNamespace = $8004100E;
  208.   wbemErrInvalidObject = $8004100F;
  209.   wbemErrInvalidClass = $80041010;
  210.   wbemErrProviderNotFound = $80041011;
  211.   wbemErrInvalidProviderRegistration = $80041012;
  212.   wbemErrProviderLoadFailure = $80041013;
  213.   wbemErrInitializationFailure = $80041014;
  214.   wbemErrTransportFailure = $80041015;
  215.   wbemErrInvalidOperation = $80041016;
  216.   wbemErrInvalidQuery = $80041017;
  217.   wbemErrInvalidQueryType = $80041018;
  218.   wbemErrAlreadyExists = $80041019;
  219.   wbemErrOverrideNotAllowed = $8004101A;
  220.   wbemErrPropagatedQualifier = $8004101B;
  221.   wbemErrPropagatedProperty = $8004101C;
  222.   wbemErrUnexpected = $8004101D;
  223.   wbemErrIllegalOperation = $8004101E;
  224.   wbemErrCannotBeKey = $8004101F;
  225.   wbemErrIncompleteClass = $80041020;
  226.   wbemErrInvalidSyntax = $80041021;
  227.   wbemErrNondecoratedObject = $80041022;
  228.   wbemErrReadOnly = $80041023;
  229.   wbemErrProviderNotCapable = $80041024;
  230.   wbemErrClassHasChildren = $80041025;
  231.   wbemErrClassHasInstances = $80041026;
  232.   wbemErrQueryNotImplemented = $80041027;
  233.   wbemErrIllegalNull = $80041028;
  234.   wbemErrInvalidQualifierType = $80041029;
  235.   wbemErrInvalidPropertyType = $8004102A;
  236.   wbemErrValueOutOfRange = $8004102B;
  237.   wbemErrCannotBeSingleton = $8004102C;
  238.   wbemErrInvalidCimType = $8004102D;
  239.   wbemErrInvalidMethod = $8004102E;
  240.   wbemErrInvalidMethodParameters = $8004102F;
  241.   wbemErrSystemProperty = $80041030;
  242.   wbemErrInvalidProperty = $80041031;
  243.   wbemErrCallCancelled = $80041032;
  244.   wbemErrShuttingDown = $80041033;
  245.   wbemErrPropagatedMethod = $80041034;
  246.   wbemErrUnsupportedParameter = $80041035;
  247.   wbemErrMissingParameter = $80041036;
  248.   wbemErrInvalidParameterId = $80041037;
  249.   wbemErrNonConsecutiveParameterIds = $80041038;
  250.   wbemErrParameterIdOnRetval = $80041039;
  251.   wbemErrInvalidObjectPath = $8004103A;
  252.   wbemErrOutOfDiskSpace = $8004103B;
  253.   wbemErrBufferTooSmall = $8004103C;
  254.   wbemErrUnsupportedPutExtension = $8004103D;
  255.   wbemErrUnknownObjectType = $8004103E;
  256.   wbemErrUnknownPacketType = $8004103F;
  257.   wbemErrMarshalVersionMismatch = $80041040;
  258.   wbemErrMarshalInvalidSignature = $80041041;
  259.   wbemErrInvalidQualifier = $80041042;
  260.   wbemErrInvalidDuplicateParameter = $80041043;
  261.   wbemErrTooMuchData = $80041044;
  262.   wbemErrServerTooBusy = $80041045;
  263.   wbemErrInvalidFlavor = $80041046;
  264.   wbemErrCircularReference = $80041047;
  265.   wbemErrUnsupportedClassUpdate = $80041048;
  266.   wbemErrCannotChangeKeyInheritance = $80041049;
  267.   wbemErrCannotChangeIndexInheritance = $80041050;
  268.   wbemErrTooManyProperties = $80041051;
  269.   wbemErrUpdateTypeMismatch = $80041052;
  270.   wbemErrUpdateOverrideNotAllowed = $80041053;
  271.   wbemErrUpdatePropagatedMethod = $80041054;
  272.   wbemErrMethodNotImplemented = $80041055;
  273.   wbemErrMethodDisabled = $80041056;
  274.   wbemErrRefresherBusy = $80041057;
  275.   wbemErrUnparsableQuery = $80041058;
  276.   wbemErrNotEventClass = $80041059;
  277.   wbemErrMissingGroupWithin = $8004105A;
  278.   wbemErrMissingAggregationList = $8004105B;
  279.   wbemErrPropertyNotAnObject = $8004105C;
  280.   wbemErrAggregatingByObject = $8004105D;
  281.   wbemErrUninterpretableProviderQuery = $8004105F;
  282.   wbemErrBackupRestoreWinmgmtRunning = $80041060;
  283.   wbemErrQueueOverflow = $80041061;
  284.   wbemErrPrivilegeNotHeld = $80041062;
  285.   wbemErrInvalidOperator = $80041063;
  286.   wbemErrLocalCredentials = $80041064;
  287.   wbemErrCannotBeAbstract = $80041065;
  288.   wbemErrAmendedObject = $80041066;
  289.   wbemErrClientTooSlow = $80041067;
  290.   wbemErrNullSecurityDescriptor = $80041068;
  291.   wbemErrTimeout = $80041069;
  292.   wbemErrInvalidAssociation = $8004106A;
  293.   wbemErrAmbiguousOperation = $8004106B;
  294.   wbemErrQuotaViolation = $8004106C;
  295.   wbemErrTransactionConflict = $8004106D;
  296.   wbemErrForcedRollback = $8004106E;
  297.   wbemErrUnsupportedLocale = $8004106F;
  298.   wbemErrHandleOutOfDate = $80041070;
  299.   wbemErrConnectionFailed = $80041071;
  300.   wbemErrInvalidHandleRequest = $80041072;
  301.   wbemErrPropertyNameTooWide = $80041073;
  302.   wbemErrClassNameTooWide = $80041074;
  303.   wbemErrMethodNameTooWide = $80041075;
  304.   wbemErrQualifierNameTooWide = $80041076;
  305.   wbemErrRerunCommand = $80041077;
  306.   wbemErrDatabaseVerMismatch = $80041078;
  307.   wbemErrVetoPut = $80041079;
  308.   wbemErrVetoDelete = $8004107A;
  309.   wbemErrInvalidLocale = $80041080;
  310.   wbemErrProviderSuspended = $80041081;
  311.   wbemErrSynchronizationRequired = $80041082;
  312.   wbemErrNoSchema = $80041083;
  313.   wbemErrProviderAlreadyRegistered = $80041084;
  314.   wbemErrProviderNotRegistered = $80041085;
  315.   wbemErrFatalTransportError = $80041086;
  316.   wbemErrEncryptedConnectionRequired = $80041087;
  317.   wbemErrRegistrationTooBroad = $80042001;
  318.   wbemErrRegistrationTooPrecise = $80042002;
  319.   wbemErrTimedout = $80043001;
  320.   wbemErrResetToDefault = $80043002;
  321. // Constants for enum WbemObjectTextFormatEnum
  322. type
  323.   WbemObjectTextFormatEnum = TOleEnum;
  324. const
  325.   wbemObjectTextFormatCIMDTD20 = $00000001;
  326.   wbemObjectTextFormatWMIDTD20 = $00000002;
  327. // Constants for enum WbemChangeFlagEnum
  328. type
  329.   WbemChangeFlagEnum = TOleEnum;
  330. const
  331.   wbemChangeFlagCreateOrUpdate = $00000000;
  332.   wbemChangeFlagUpdateOnly = $00000001;
  333.   wbemChangeFlagCreateOnly = $00000002;
  334.   wbemChangeFlagUpdateCompatible = $00000000;
  335.   wbemChangeFlagUpdateSafeMode = $00000020;
  336.   wbemChangeFlagUpdateForceMode = $00000040;
  337.   wbemChangeFlagStrongValidation = $00000080;
  338.   wbemChangeFlagAdvisory = $00010000;
  339. // Constants for enum WbemFlagEnum
  340. type
  341.   WbemFlagEnum = TOleEnum;
  342. const
  343.   wbemFlagReturnImmediately = $00000010;
  344.   wbemFlagReturnWhenComplete = $00000000;
  345.   wbemFlagBidirectional = $00000000;
  346.   wbemFlagForwardOnly = $00000020;
  347.   wbemFlagNoErrorObject = $00000040;
  348.   wbemFlagReturnErrorObject = $00000000;
  349.   wbemFlagSendStatus = $00000080;
  350.   wbemFlagDontSendStatus = $00000000;
  351.   wbemFlagEnsureLocatable = $00000100;
  352.   wbemFlagDirectRead = $00000200;
  353.   wbemFlagSendOnlySelected = $00000000;
  354.   wbemFlagUseAmendedQualifiers = $00020000;
  355.   wbemFlagGetDefault = $00000000;
  356.   wbemFlagSpawnInstance = $00000001;
  357.   wbemFlagUseCurrentTime = $00000001;
  358. // Constants for enum WbemQueryFlagEnum
  359. type
  360.   WbemQueryFlagEnum = TOleEnum;
  361. const
  362.   wbemQueryFlagDeep = $00000000;
  363.   wbemQueryFlagShallow = $00000001;
  364.   wbemQueryFlagPrototype = $00000002;
  365. // Constants for enum WbemTextFlagEnum
  366. type
  367.   WbemTextFlagEnum = TOleEnum;
  368. const
  369.   wbemTextFlagNoFlavors = $00000001;
  370. // Constants for enum WbemTimeout
  371. type
  372.   WbemTimeout = TOleEnum;
  373. const
  374.   wbemTimeoutInfinite = $FFFFFFFF;
  375. // Constants for enum WbemComparisonFlagEnum
  376. type
  377.   WbemComparisonFlagEnum = TOleEnum;
  378. const
  379.   wbemComparisonFlagIncludeAll = $00000000;
  380.   wbemComparisonFlagIgnoreQualifiers = $00000001;
  381.   wbemComparisonFlagIgnoreObjectSource = $00000002;
  382.   wbemComparisonFlagIgnoreDefaultValues = $00000004;
  383.   wbemComparisonFlagIgnoreClass = $00000008;
  384.   wbemComparisonFlagIgnoreCase = $00000010;
  385.   wbemComparisonFlagIgnoreFlavor = $00000020;
  386. // Constants for enum WbemConnectOptionsEnum
  387. type
  388.   WbemConnectOptionsEnum = TOleEnum;
  389. const
  390.   wbemConnectFlagUseMaxWait = $00000080;
  391. type
  392. // *********************************************************************//
  393. // Forward declaration of types defined in TypeLibrary                    
  394. // *********************************************************************//
  395.   ISWbemServices = interface;
  396.   ISWbemServicesDisp = dispinterface;
  397.   ISWbemObject = interface;
  398.   ISWbemObjectDisp = dispinterface;
  399.   ISWbemObjectPath = interface;
  400.   ISWbemObjectPathDisp = dispinterface;
  401.   ISWbemNamedValueSet = interface;
  402.   ISWbemNamedValueSetDisp = dispinterface;
  403.   ISWbemNamedValue = interface;
  404.   ISWbemNamedValueDisp = dispinterface;
  405.   ISWbemSecurity = interface;
  406.   ISWbemSecurityDisp = dispinterface;
  407.   ISWbemPrivilegeSet = interface;
  408.   ISWbemPrivilegeSetDisp = dispinterface;
  409.   ISWbemPrivilege = interface;
  410.   ISWbemPrivilegeDisp = dispinterface;
  411.   ISWbemObjectSet = interface;
  412.   ISWbemObjectSetDisp = dispinterface;
  413.   ISWbemQualifierSet = interface;
  414.   ISWbemQualifierSetDisp = dispinterface;
  415.   ISWbemQualifier = interface;
  416.   ISWbemQualifierDisp = dispinterface;
  417.   ISWbemPropertySet = interface;
  418.   ISWbemPropertySetDisp = dispinterface;
  419.   ISWbemProperty = interface;
  420.   ISWbemPropertyDisp = dispinterface;
  421.   ISWbemMethodSet = interface;
  422.   ISWbemMethodSetDisp = dispinterface;
  423.   ISWbemMethod = interface;
  424.   ISWbemMethodDisp = dispinterface;
  425.   ISWbemEventSource = interface;
  426.   ISWbemEventSourceDisp = dispinterface;
  427.   ISWbemLocator = interface;
  428.   ISWbemLocatorDisp = dispinterface;
  429.   ISWbemLastError = interface;
  430.   ISWbemLastErrorDisp = dispinterface;
  431.   ISWbemSinkEvents = dispinterface;
  432.   ISWbemSink = interface;
  433.   ISWbemSinkDisp = dispinterface;
  434.   ISWbemServicesEx = interface;
  435.   ISWbemServicesExDisp = dispinterface;
  436.   ISWbemObjectEx = interface;
  437.   ISWbemObjectExDisp = dispinterface;
  438.   ISWbemDateTime = interface;
  439.   ISWbemDateTimeDisp = dispinterface;
  440.   ISWbemRefresher = interface;
  441.   ISWbemRefresherDisp = dispinterface;
  442.   ISWbemRefreshableItem = interface;
  443.   ISWbemRefreshableItemDisp = dispinterface;
  444. // *********************************************************************//
  445. // Declaration of CoClasses defined in Type Library                       
  446. // (NOTE: Here we map each CoClass to its Default Interface)              
  447. // *********************************************************************//
  448.   SWbemLocator = ISWbemLocator;
  449.   SWbemNamedValueSet = ISWbemNamedValueSet;
  450.   SWbemObjectPath = ISWbemObjectPath;
  451.   SWbemLastError = ISWbemLastError;
  452.   SWbemSink = ISWbemSink;
  453.   SWbemDateTime = ISWbemDateTime;
  454.   SWbemRefresher = ISWbemRefresher;
  455.   SWbemServices = ISWbemServices;
  456.   SWbemServicesEx = ISWbemServicesEx;
  457.   SWbemObject = ISWbemObject;
  458.   SWbemObjectEx = ISWbemObjectEx;
  459.   SWbemObjectSet = ISWbemObjectSet;
  460.   SWbemNamedValue = ISWbemNamedValue;
  461.   SWbemQualifier = ISWbemQualifier;
  462.   SWbemQualifierSet = ISWbemQualifierSet;
  463.   SWbemProperty = ISWbemProperty;
  464.   SWbemPropertySet = ISWbemPropertySet;
  465.   SWbemMethod = ISWbemMethod;
  466.   SWbemMethodSet = ISWbemMethodSet;
  467.   SWbemEventSource = ISWbemEventSource;
  468.   SWbemSecurity = ISWbemSecurity;
  469.   SWbemPrivilege = ISWbemPrivilege;
  470.   SWbemPrivilegeSet = ISWbemPrivilegeSet;
  471.   SWbemRefreshableItem = ISWbemRefreshableItem;
  472. // *********************************************************************//
  473. // Declaration of structures, unions and aliases.                         
  474. // *********************************************************************//
  475.   POleVariant1 = ^OleVariant; {*}
  476. // *********************************************************************//
  477. // Interface: ISWbemServices
  478. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  479. // GUID:      {76A6415C-CB41-11D1-8B02-00600806D9B6}
  480. // *********************************************************************//
  481.   ISWbemServices = interface(IDispatch)
  482.     ['{76A6415C-CB41-11D1-8B02-00600806D9B6}']
  483.     function Get(const strObjectPath: WideString; iFlags: Integer; 
  484.                  const objWbemNamedValueSet: IDispatch): ISWbemObject; safecall;
  485.     procedure GetAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  486.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  487.                        const objWbemAsyncContext: IDispatch); safecall;
  488.     procedure Delete(const strObjectPath: WideString; iFlags: Integer; 
  489.                      const objWbemNamedValueSet: IDispatch); safecall;
  490.     procedure DeleteAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  491.                           iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  492.                           const objWbemAsyncContext: IDispatch); safecall;
  493.     function InstancesOf(const strClass: WideString; iFlags: Integer; 
  494.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  495.     procedure InstancesOfAsync(const objWbemSink: IDispatch; const strClass: WideString; 
  496.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  497.                                const objWbemAsyncContext: IDispatch); safecall;
  498.     function SubclassesOf(const strSuperclass: WideString; iFlags: Integer; 
  499.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  500.     procedure SubclassesOfAsync(const objWbemSink: IDispatch; const strSuperclass: WideString; 
  501.                                 iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  502.                                 const objWbemAsyncContext: IDispatch); safecall;
  503.     function ExecQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  504.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  505.     procedure ExecQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  506.                              const strQueryLanguage: WideString; lFlags: Integer; 
  507.                              const objWbemNamedValueSet: IDispatch; 
  508.                              const objWbemAsyncContext: IDispatch); safecall;
  509.     function AssociatorsOf(const strObjectPath: WideString; const strAssocClass: WideString; 
  510.                            const strResultClass: WideString; const strResultRole: WideString; 
  511.                            const strRole: WideString; bClassesOnly: WordBool; 
  512.                            bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  513.                            const strRequiredQualifier: WideString; iFlags: Integer; 
  514.                            const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  515.     procedure AssociatorsOfAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  516.                                  const strAssocClass: WideString; const strResultClass: WideString; 
  517.                                  const strResultRole: WideString; const strRole: WideString; 
  518.                                  bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  519.                                  const strRequiredAssocQualifier: WideString; 
  520.                                  const strRequiredQualifier: WideString; iFlags: Integer; 
  521.                                  const objWbemNamedValueSet: IDispatch; 
  522.                                  const objWbemAsyncContext: IDispatch); safecall;
  523.     function ReferencesTo(const strObjectPath: WideString; const strResultClass: WideString; 
  524.                           const strRole: WideString; bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  525.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  526.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  527.     procedure ReferencesToAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  528.                                 const strResultClass: WideString; const strRole: WideString; 
  529.                                 bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  530.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  531.                                 const objWbemNamedValueSet: IDispatch; 
  532.                                 const objWbemAsyncContext: IDispatch); safecall;
  533.     function ExecNotificationQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  534.                                    iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemEventSource; safecall;
  535.     procedure ExecNotificationQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  536.                                          const strQueryLanguage: WideString; iFlags: Integer; 
  537.                                          const objWbemNamedValueSet: IDispatch; 
  538.                                          const objWbemAsyncContext: IDispatch); safecall;
  539.     function ExecMethod(const strObjectPath: WideString; const strMethodName: WideString; 
  540.                         const objWbemInParameters: IDispatch; iFlags: Integer; 
  541.                         const objWbemNamedValueSet: IDispatch): ISWbemObject; safecall;
  542.     procedure ExecMethodAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  543.                               const strMethodName: WideString; 
  544.                               const objWbemInParameters: IDispatch; iFlags: Integer; 
  545.                               const objWbemNamedValueSet: IDispatch; 
  546.                               const objWbemAsyncContext: IDispatch); safecall;
  547.     function Get_Security_: ISWbemSecurity; safecall;
  548.     property Security_: ISWbemSecurity read Get_Security_;
  549.   end;
  550. // *********************************************************************//
  551. // DispIntf:  ISWbemServicesDisp
  552. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  553. // GUID:      {76A6415C-CB41-11D1-8B02-00600806D9B6}
  554. // *********************************************************************//
  555.   ISWbemServicesDisp = dispinterface
  556.     ['{76A6415C-CB41-11D1-8B02-00600806D9B6}']
  557.     function Get(const strObjectPath: WideString; iFlags: Integer; 
  558.                  const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 1;
  559.     procedure GetAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  560.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  561.                        const objWbemAsyncContext: IDispatch); dispid 2;
  562.     procedure Delete(const strObjectPath: WideString; iFlags: Integer; 
  563.                      const objWbemNamedValueSet: IDispatch); dispid 3;
  564.     procedure DeleteAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  565.                           iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  566.                           const objWbemAsyncContext: IDispatch); dispid 4;
  567.     function InstancesOf(const strClass: WideString; iFlags: Integer; 
  568.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 5;
  569.     procedure InstancesOfAsync(const objWbemSink: IDispatch; const strClass: WideString; 
  570.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  571.                                const objWbemAsyncContext: IDispatch); dispid 6;
  572.     function SubclassesOf(const strSuperclass: WideString; iFlags: Integer; 
  573.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 7;
  574.     procedure SubclassesOfAsync(const objWbemSink: IDispatch; const strSuperclass: WideString; 
  575.                                 iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  576.                                 const objWbemAsyncContext: IDispatch); dispid 8;
  577.     function ExecQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  578.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 9;
  579.     procedure ExecQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  580.                              const strQueryLanguage: WideString; lFlags: Integer; 
  581.                              const objWbemNamedValueSet: IDispatch; 
  582.                              const objWbemAsyncContext: IDispatch); dispid 10;
  583.     function AssociatorsOf(const strObjectPath: WideString; const strAssocClass: WideString; 
  584.                            const strResultClass: WideString; const strResultRole: WideString; 
  585.                            const strRole: WideString; bClassesOnly: WordBool; 
  586.                            bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  587.                            const strRequiredQualifier: WideString; iFlags: Integer; 
  588.                            const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 11;
  589.     procedure AssociatorsOfAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  590.                                  const strAssocClass: WideString; const strResultClass: WideString; 
  591.                                  const strResultRole: WideString; const strRole: WideString; 
  592.                                  bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  593.                                  const strRequiredAssocQualifier: WideString; 
  594.                                  const strRequiredQualifier: WideString; iFlags: Integer; 
  595.                                  const objWbemNamedValueSet: IDispatch; 
  596.                                  const objWbemAsyncContext: IDispatch); dispid 12;
  597.     function ReferencesTo(const strObjectPath: WideString; const strResultClass: WideString; 
  598.                           const strRole: WideString; bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  599.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  600.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 13;
  601.     procedure ReferencesToAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  602.                                 const strResultClass: WideString; const strRole: WideString; 
  603.                                 bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  604.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  605.                                 const objWbemNamedValueSet: IDispatch; 
  606.                                 const objWbemAsyncContext: IDispatch); dispid 14;
  607.     function ExecNotificationQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  608.                                    iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemEventSource; dispid 15;
  609.     procedure ExecNotificationQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  610.                                          const strQueryLanguage: WideString; iFlags: Integer; 
  611.                                          const objWbemNamedValueSet: IDispatch; 
  612.                                          const objWbemAsyncContext: IDispatch); dispid 16;
  613.     function ExecMethod(const strObjectPath: WideString; const strMethodName: WideString; 
  614.                         const objWbemInParameters: IDispatch; iFlags: Integer; 
  615.                         const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 17;
  616.     procedure ExecMethodAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  617.                               const strMethodName: WideString; 
  618.                               const objWbemInParameters: IDispatch; iFlags: Integer; 
  619.                               const objWbemNamedValueSet: IDispatch; 
  620.                               const objWbemAsyncContext: IDispatch); dispid 18;
  621.     property Security_: ISWbemSecurity readonly dispid 19;
  622.   end;
  623. // *********************************************************************//
  624. // Interface: ISWbemObject
  625. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  626. // GUID:      {76A6415A-CB41-11D1-8B02-00600806D9B6}
  627. // *********************************************************************//
  628.   ISWbemObject = interface(IDispatch)
  629.     ['{76A6415A-CB41-11D1-8B02-00600806D9B6}']
  630.     function Put_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; safecall;
  631.     procedure PutAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  632.                         const objWbemNamedValueSet: IDispatch; const objWbemAsyncContext: IDispatch); safecall;
  633.     procedure Delete_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); safecall;
  634.     procedure DeleteAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  635.                            const objWbemNamedValueSet: IDispatch; 
  636.                            const objWbemAsyncContext: IDispatch); safecall;
  637.     function Instances_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  638.     procedure InstancesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  639.                               const objWbemNamedValueSet: IDispatch; 
  640.                               const objWbemAsyncContext: IDispatch); safecall;
  641.     function Subclasses_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  642.     procedure SubclassesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  643.                                const objWbemNamedValueSet: IDispatch; 
  644.                                const objWbemAsyncContext: IDispatch); safecall;
  645.     function Associators_(const strAssocClass: WideString; const strResultClass: WideString; 
  646.                           const strResultRole: WideString; const strRole: WideString; 
  647.                           bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  648.                           const strRequiredAssocQualifier: WideString; 
  649.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  650.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  651.     procedure AssociatorsAsync_(const objWbemSink: IDispatch; const strAssocClass: WideString; 
  652.                                 const strResultClass: WideString; const strResultRole: WideString; 
  653.                                 const strRole: WideString; bClassesOnly: WordBool; 
  654.                                 bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  655.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  656.                                 const objWbemNamedValueSet: IDispatch; 
  657.                                 const objWbemAsyncContext: IDispatch); safecall;
  658.     function References_(const strResultClass: WideString; const strRole: WideString; 
  659.                          bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  660.                          const strRequiredQualifier: WideString; iFlags: Integer; 
  661.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; safecall;
  662.     procedure ReferencesAsync_(const objWbemSink: IDispatch; const strResultClass: WideString; 
  663.                                const strRole: WideString; bClassesOnly: WordBool; 
  664.                                bSchemaOnly: WordBool; const strRequiredQualifier: WideString; 
  665.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  666.                                const objWbemAsyncContext: IDispatch); safecall;
  667.     function ExecMethod_(const strMethodName: WideString; const objWbemInParameters: IDispatch; 
  668.                          iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObject; safecall;
  669.     procedure ExecMethodAsync_(const objWbemSink: IDispatch; const strMethodName: WideString; 
  670.                                const objWbemInParameters: IDispatch; iFlags: Integer; 
  671.                                const objWbemNamedValueSet: IDispatch; 
  672.                                const objWbemAsyncContext: IDispatch); safecall;
  673.     function Clone_: ISWbemObject; safecall;
  674.     function GetObjectText_(iFlags: Integer): WideString; safecall;
  675.     function SpawnDerivedClass_(iFlags: Integer): ISWbemObject; safecall;
  676.     function SpawnInstance_(iFlags: Integer): ISWbemObject; safecall;
  677.     function CompareTo_(const objWbemObject: IDispatch; iFlags: Integer): WordBool; safecall;
  678.     function Get_Qualifiers_: ISWbemQualifierSet; safecall;
  679.     function Get_Properties_: ISWbemPropertySet; safecall;
  680.     function Get_Methods_: ISWbemMethodSet; safecall;
  681.     function Get_Derivation_: OleVariant; safecall;
  682.     function Get_Path_: ISWbemObjectPath; safecall;
  683.     function Get_Security_: ISWbemSecurity; safecall;
  684.     property Qualifiers_: ISWbemQualifierSet read Get_Qualifiers_;
  685.     property Properties_: ISWbemPropertySet read Get_Properties_;
  686.     property Methods_: ISWbemMethodSet read Get_Methods_;
  687.     property Derivation_: OleVariant read Get_Derivation_;
  688.     property Path_: ISWbemObjectPath read Get_Path_;
  689.     property Security_: ISWbemSecurity read Get_Security_;
  690.   end;
  691. // *********************************************************************//
  692. // DispIntf:  ISWbemObjectDisp
  693. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  694. // GUID:      {76A6415A-CB41-11D1-8B02-00600806D9B6}
  695. // *********************************************************************//
  696.   ISWbemObjectDisp = dispinterface
  697.     ['{76A6415A-CB41-11D1-8B02-00600806D9B6}']
  698.     function Put_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; dispid 1;
  699.     procedure PutAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  700.                         const objWbemNamedValueSet: IDispatch; const objWbemAsyncContext: IDispatch); dispid 2;
  701.     procedure Delete_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); dispid 3;
  702.     procedure DeleteAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  703.                            const objWbemNamedValueSet: IDispatch; 
  704.                            const objWbemAsyncContext: IDispatch); dispid 4;
  705.     function Instances_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 5;
  706.     procedure InstancesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  707.                               const objWbemNamedValueSet: IDispatch; 
  708.                               const objWbemAsyncContext: IDispatch); dispid 6;
  709.     function Subclasses_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 7;
  710.     procedure SubclassesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  711.                                const objWbemNamedValueSet: IDispatch; 
  712.                                const objWbemAsyncContext: IDispatch); dispid 8;
  713.     function Associators_(const strAssocClass: WideString; const strResultClass: WideString; 
  714.                           const strResultRole: WideString; const strRole: WideString; 
  715.                           bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  716.                           const strRequiredAssocQualifier: WideString; 
  717.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  718.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 9;
  719.     procedure AssociatorsAsync_(const objWbemSink: IDispatch; const strAssocClass: WideString; 
  720.                                 const strResultClass: WideString; const strResultRole: WideString; 
  721.                                 const strRole: WideString; bClassesOnly: WordBool; 
  722.                                 bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  723.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  724.                                 const objWbemNamedValueSet: IDispatch; 
  725.                                 const objWbemAsyncContext: IDispatch); dispid 10;
  726.     function References_(const strResultClass: WideString; const strRole: WideString; 
  727.                          bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  728.                          const strRequiredQualifier: WideString; iFlags: Integer; 
  729.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 11;
  730.     procedure ReferencesAsync_(const objWbemSink: IDispatch; const strResultClass: WideString; 
  731.                                const strRole: WideString; bClassesOnly: WordBool; 
  732.                                bSchemaOnly: WordBool; const strRequiredQualifier: WideString; 
  733.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  734.                                const objWbemAsyncContext: IDispatch); dispid 12;
  735.     function ExecMethod_(const strMethodName: WideString; const objWbemInParameters: IDispatch; 
  736.                          iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 13;
  737.     procedure ExecMethodAsync_(const objWbemSink: IDispatch; const strMethodName: WideString; 
  738.                                const objWbemInParameters: IDispatch; iFlags: Integer; 
  739.                                const objWbemNamedValueSet: IDispatch; 
  740.                                const objWbemAsyncContext: IDispatch); dispid 14;
  741.     function Clone_: ISWbemObject; dispid 15;
  742.     function GetObjectText_(iFlags: Integer): WideString; dispid 16;
  743.     function SpawnDerivedClass_(iFlags: Integer): ISWbemObject; dispid 17;
  744.     function SpawnInstance_(iFlags: Integer): ISWbemObject; dispid 18;
  745.     function CompareTo_(const objWbemObject: IDispatch; iFlags: Integer): WordBool; dispid 19;
  746.     property Qualifiers_: ISWbemQualifierSet readonly dispid 20;
  747.     property Properties_: ISWbemPropertySet readonly dispid 21;
  748.     property Methods_: ISWbemMethodSet readonly dispid 22;
  749.     property Derivation_: OleVariant readonly dispid 23;
  750.     property Path_: ISWbemObjectPath readonly dispid 24;
  751.     property Security_: ISWbemSecurity readonly dispid 25;
  752.   end;
  753. // *********************************************************************//
  754. // Interface: ISWbemObjectPath
  755. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  756. // GUID:      {5791BC27-CE9C-11D1-97BF-0000F81E849C}
  757. // *********************************************************************//
  758.   ISWbemObjectPath = interface(IDispatch)
  759.     ['{5791BC27-CE9C-11D1-97BF-0000F81E849C}']
  760.     function Get_Path: WideString; safecall;
  761.     procedure Set_Path(const strPath: WideString); safecall;
  762.     function Get_RelPath: WideString; safecall;
  763.     procedure Set_RelPath(const strRelPath: WideString); safecall;
  764.     function Get_Server: WideString; safecall;
  765.     procedure Set_Server(const strServer: WideString); safecall;
  766.     function Get_Namespace: WideString; safecall;
  767.     procedure Set_Namespace(const strNamespace: WideString); safecall;
  768.     function Get_ParentNamespace: WideString; safecall;
  769.     function Get_DisplayName: WideString; safecall;
  770.     procedure Set_DisplayName(const strDisplayName: WideString); safecall;
  771.     function Get_Class_: WideString; safecall;
  772.     procedure Set_Class_(const strClass: WideString); safecall;
  773.     function Get_IsClass: WordBool; safecall;
  774.     procedure SetAsClass; safecall;
  775.     function Get_IsSingleton: WordBool; safecall;
  776.     procedure SetAsSingleton; safecall;
  777.     function Get_Keys: ISWbemNamedValueSet; safecall;
  778.     function Get_Security_: ISWbemSecurity; safecall;
  779.     function Get_Locale: WideString; safecall;
  780.     procedure Set_Locale(const strLocale: WideString); safecall;
  781.     function Get_Authority: WideString; safecall;
  782.     procedure Set_Authority(const strAuthority: WideString); safecall;
  783.     property Path: WideString read Get_Path write Set_Path;
  784.     property RelPath: WideString read Get_RelPath write Set_RelPath;
  785.     property Server: WideString read Get_Server write Set_Server;
  786.     property Namespace: WideString read Get_Namespace write Set_Namespace;
  787.     property ParentNamespace: WideString read Get_ParentNamespace;
  788.     property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
  789.     property Class_: WideString read Get_Class_ write Set_Class_;
  790.     property IsClass: WordBool read Get_IsClass;
  791.     property IsSingleton: WordBool read Get_IsSingleton;
  792.     property Keys: ISWbemNamedValueSet read Get_Keys;
  793.     property Security_: ISWbemSecurity read Get_Security_;
  794.     property Locale: WideString read Get_Locale write Set_Locale;
  795.     property Authority: WideString read Get_Authority write Set_Authority;
  796.   end;
  797. // *********************************************************************//
  798. // DispIntf:  ISWbemObjectPathDisp
  799. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  800. // GUID:      {5791BC27-CE9C-11D1-97BF-0000F81E849C}
  801. // *********************************************************************//
  802.   ISWbemObjectPathDisp = dispinterface
  803.     ['{5791BC27-CE9C-11D1-97BF-0000F81E849C}']
  804.     property Path: WideString dispid 0;
  805.     property RelPath: WideString dispid 1;
  806.     property Server: WideString dispid 2;
  807.     property Namespace: WideString dispid 3;
  808.     property ParentNamespace: WideString readonly dispid 4;
  809.     property DisplayName: WideString dispid 5;
  810.     property Class_: WideString dispid 6;
  811.     property IsClass: WordBool readonly dispid 7;
  812.     procedure SetAsClass; dispid 8;
  813.     property IsSingleton: WordBool readonly dispid 9;
  814.     procedure SetAsSingleton; dispid 10;
  815.     property Keys: ISWbemNamedValueSet readonly dispid 11;
  816.     property Security_: ISWbemSecurity readonly dispid 12;
  817.     property Locale: WideString dispid 13;
  818.     property Authority: WideString dispid 14;
  819.   end;
  820. // *********************************************************************//
  821. // Interface: ISWbemNamedValueSet
  822. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  823. // GUID:      {CF2376EA-CE8C-11D1-8B05-00600806D9B6}
  824. // *********************************************************************//
  825.   ISWbemNamedValueSet = interface(IDispatch)
  826.     ['{CF2376EA-CE8C-11D1-8B05-00600806D9B6}']
  827.     function Get__NewEnum: IUnknown; safecall;
  828.     function Item(const strName: WideString; iFlags: Integer): ISWbemNamedValue; safecall;
  829.     function Get_Count: Integer; safecall;
  830.     function Add(const strName: WideString; var varValue: OleVariant; iFlags: Integer): ISWbemNamedValue; safecall;
  831.     procedure Remove(const strName: WideString; iFlags: Integer); safecall;
  832.     function Clone: ISWbemNamedValueSet; safecall;
  833.     procedure DeleteAll; safecall;
  834.     property _NewEnum: IUnknown read Get__NewEnum;
  835.     property Count: Integer read Get_Count;
  836.   end;
  837. // *********************************************************************//
  838. // DispIntf:  ISWbemNamedValueSetDisp
  839. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  840. // GUID:      {CF2376EA-CE8C-11D1-8B05-00600806D9B6}
  841. // *********************************************************************//
  842.   ISWbemNamedValueSetDisp = dispinterface
  843.     ['{CF2376EA-CE8C-11D1-8B05-00600806D9B6}']
  844.     property _NewEnum: IUnknown readonly dispid -4;
  845.     function Item(const strName: WideString; iFlags: Integer): ISWbemNamedValue; dispid 0;
  846.     property Count: Integer readonly dispid 1;
  847.     function Add(const strName: WideString; var varValue: OleVariant; iFlags: Integer): ISWbemNamedValue; dispid 2;
  848.     procedure Remove(const strName: WideString; iFlags: Integer); dispid 3;
  849.     function Clone: ISWbemNamedValueSet; dispid 4;
  850.     procedure DeleteAll; dispid 5;
  851.   end;
  852. // *********************************************************************//
  853. // Interface: ISWbemNamedValue
  854. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  855. // GUID:      {76A64164-CB41-11D1-8B02-00600806D9B6}
  856. // *********************************************************************//
  857.   ISWbemNamedValue = interface(IDispatch)
  858.     ['{76A64164-CB41-11D1-8B02-00600806D9B6}']
  859.     function Get_Value: OleVariant; safecall;
  860.     procedure Set_Value(var varValue: OleVariant); safecall;
  861.     function Get_Name: WideString; safecall;
  862.     property Name: WideString read Get_Name;
  863.   end;
  864. // *********************************************************************//
  865. // DispIntf:  ISWbemNamedValueDisp
  866. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  867. // GUID:      {76A64164-CB41-11D1-8B02-00600806D9B6}
  868. // *********************************************************************//
  869.   ISWbemNamedValueDisp = dispinterface
  870.     ['{76A64164-CB41-11D1-8B02-00600806D9B6}']
  871.     function Value: OleVariant; dispid 0;
  872.     property Name: WideString readonly dispid 2;
  873.   end;
  874. // *********************************************************************//
  875. // Interface: ISWbemSecurity
  876. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  877. // GUID:      {B54D66E6-2287-11D2-8B33-00600806D9B6}
  878. // *********************************************************************//
  879.   ISWbemSecurity = interface(IDispatch)
  880.     ['{B54D66E6-2287-11D2-8B33-00600806D9B6}']
  881.     function Get_ImpersonationLevel: WbemImpersonationLevelEnum; safecall;
  882.     procedure Set_ImpersonationLevel(iImpersonationLevel: WbemImpersonationLevelEnum); safecall;
  883.     function Get_AuthenticationLevel: WbemAuthenticationLevelEnum; safecall;
  884.     procedure Set_AuthenticationLevel(iAuthenticationLevel: WbemAuthenticationLevelEnum); safecall;
  885.     function Get_Privileges: ISWbemPrivilegeSet; safecall;
  886.     property ImpersonationLevel: WbemImpersonationLevelEnum read Get_ImpersonationLevel write Set_ImpersonationLevel;
  887.     property AuthenticationLevel: WbemAuthenticationLevelEnum read Get_AuthenticationLevel write Set_AuthenticationLevel;
  888.     property Privileges: ISWbemPrivilegeSet read Get_Privileges;
  889.   end;
  890. // *********************************************************************//
  891. // DispIntf:  ISWbemSecurityDisp
  892. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  893. // GUID:      {B54D66E6-2287-11D2-8B33-00600806D9B6}
  894. // *********************************************************************//
  895.   ISWbemSecurityDisp = dispinterface
  896.     ['{B54D66E6-2287-11D2-8B33-00600806D9B6}']
  897.     property ImpersonationLevel: WbemImpersonationLevelEnum dispid 1;
  898.     property AuthenticationLevel: WbemAuthenticationLevelEnum dispid 2;
  899.     property Privileges: ISWbemPrivilegeSet readonly dispid 3;
  900.   end;
  901. // *********************************************************************//
  902. // Interface: ISWbemPrivilegeSet
  903. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  904. // GUID:      {26EE67BF-5804-11D2-8B4A-00600806D9B6}
  905. // *********************************************************************//
  906.   ISWbemPrivilegeSet = interface(IDispatch)
  907.     ['{26EE67BF-5804-11D2-8B4A-00600806D9B6}']
  908.     function Get__NewEnum: IUnknown; safecall;
  909.     function Item(iPrivilege: WbemPrivilegeEnum): ISWbemPrivilege; safecall;
  910.     function Get_Count: Integer; safecall;
  911.     function Add(iPrivilege: WbemPrivilegeEnum; bIsEnabled: WordBool): ISWbemPrivilege; safecall;
  912.     procedure Remove(iPrivilege: WbemPrivilegeEnum); safecall;
  913.     procedure DeleteAll; safecall;
  914.     function AddAsString(const strPrivilege: WideString; bIsEnabled: WordBool): ISWbemPrivilege; safecall;
  915.     property _NewEnum: IUnknown read Get__NewEnum;
  916.     property Count: Integer read Get_Count;
  917.   end;
  918. // *********************************************************************//
  919. // DispIntf:  ISWbemPrivilegeSetDisp
  920. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  921. // GUID:      {26EE67BF-5804-11D2-8B4A-00600806D9B6}
  922. // *********************************************************************//
  923.   ISWbemPrivilegeSetDisp = dispinterface
  924.     ['{26EE67BF-5804-11D2-8B4A-00600806D9B6}']
  925.     property _NewEnum: IUnknown readonly dispid -4;
  926.     function Item(iPrivilege: WbemPrivilegeEnum): ISWbemPrivilege; dispid 0;
  927.     property Count: Integer readonly dispid 1;
  928.     function Add(iPrivilege: WbemPrivilegeEnum; bIsEnabled: WordBool): ISWbemPrivilege; dispid 2;
  929.     procedure Remove(iPrivilege: WbemPrivilegeEnum); dispid 3;
  930.     procedure DeleteAll; dispid 4;
  931.     function AddAsString(const strPrivilege: WideString; bIsEnabled: WordBool): ISWbemPrivilege; dispid 5;
  932.   end;
  933. // *********************************************************************//
  934. // Interface: ISWbemPrivilege
  935. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  936. // GUID:      {26EE67BD-5804-11D2-8B4A-00600806D9B6}
  937. // *********************************************************************//
  938.   ISWbemPrivilege = interface(IDispatch)
  939.     ['{26EE67BD-5804-11D2-8B4A-00600806D9B6}']
  940.     function Get_IsEnabled: WordBool; safecall;
  941.     procedure Set_IsEnabled(bIsEnabled: WordBool); safecall;
  942.     function Get_Name: WideString; safecall;
  943.     function Get_DisplayName: WideString; safecall;
  944.     function Get_Identifier: WbemPrivilegeEnum; safecall;
  945.     property IsEnabled: WordBool read Get_IsEnabled write Set_IsEnabled;
  946.     property Name: WideString read Get_Name;
  947.     property DisplayName: WideString read Get_DisplayName;
  948.     property Identifier: WbemPrivilegeEnum read Get_Identifier;
  949.   end;
  950. // *********************************************************************//
  951. // DispIntf:  ISWbemPrivilegeDisp
  952. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  953. // GUID:      {26EE67BD-5804-11D2-8B4A-00600806D9B6}
  954. // *********************************************************************//
  955.   ISWbemPrivilegeDisp = dispinterface
  956.     ['{26EE67BD-5804-11D2-8B4A-00600806D9B6}']
  957.     property IsEnabled: WordBool dispid 0;
  958.     property Name: WideString readonly dispid 1;
  959.     property DisplayName: WideString readonly dispid 2;
  960.     property Identifier: WbemPrivilegeEnum readonly dispid 3;
  961.   end;
  962. // *********************************************************************//
  963. // Interface: ISWbemObjectSet
  964. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  965. // GUID:      {76A6415F-CB41-11D1-8B02-00600806D9B6}
  966. // *********************************************************************//
  967.   ISWbemObjectSet = interface(IDispatch)
  968.     ['{76A6415F-CB41-11D1-8B02-00600806D9B6}']
  969.     function Get__NewEnum: IUnknown; safecall;
  970.     function Item(const strObjectPath: WideString; iFlags: Integer): ISWbemObject; safecall;
  971.     function Get_Count: Integer; safecall;
  972.     function Get_Security_: ISWbemSecurity; safecall;
  973.     property _NewEnum: IUnknown read Get__NewEnum;
  974.     property Count: Integer read Get_Count;
  975.     property Security_: ISWbemSecurity read Get_Security_;
  976.   end;
  977. // *********************************************************************//
  978. // DispIntf:  ISWbemObjectSetDisp
  979. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  980. // GUID:      {76A6415F-CB41-11D1-8B02-00600806D9B6}
  981. // *********************************************************************//
  982.   ISWbemObjectSetDisp = dispinterface
  983.     ['{76A6415F-CB41-11D1-8B02-00600806D9B6}']
  984.     property _NewEnum: IUnknown readonly dispid -4;
  985.     function Item(const strObjectPath: WideString; iFlags: Integer): ISWbemObject; dispid 0;
  986.     property Count: Integer readonly dispid 1;
  987.     property Security_: ISWbemSecurity readonly dispid 4;
  988.   end;
  989. // *********************************************************************//
  990. // Interface: ISWbemQualifierSet
  991. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  992. // GUID:      {9B16ED16-D3DF-11D1-8B08-00600806D9B6}
  993. // *********************************************************************//
  994.   ISWbemQualifierSet = interface(IDispatch)
  995.     ['{9B16ED16-D3DF-11D1-8B08-00600806D9B6}']
  996.     function Get__NewEnum: IUnknown; safecall;
  997.     function Item(const Name: WideString; iFlags: Integer): ISWbemQualifier; safecall;
  998.     function Get_Count: Integer; safecall;
  999.     function Add(const strName: WideString; var varVal: OleVariant; 
  1000.                  bPropagatesToSubclass: WordBool; bPropagatesToInstance: WordBool; 
  1001.                  bIsOverridable: WordBool; iFlags: Integer): ISWbemQualifier; safecall;
  1002.     procedure Remove(const strName: WideString; iFlags: Integer); safecall;
  1003.     property _NewEnum: IUnknown read Get__NewEnum;
  1004.     property Count: Integer read Get_Count;
  1005.   end;
  1006. // *********************************************************************//
  1007. // DispIntf:  ISWbemQualifierSetDisp
  1008. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1009. // GUID:      {9B16ED16-D3DF-11D1-8B08-00600806D9B6}
  1010. // *********************************************************************//
  1011.   ISWbemQualifierSetDisp = dispinterface
  1012.     ['{9B16ED16-D3DF-11D1-8B08-00600806D9B6}']
  1013.     property _NewEnum: IUnknown readonly dispid -4;
  1014.     function Item(const Name: WideString; iFlags: Integer): ISWbemQualifier; dispid 0;
  1015.     property Count: Integer readonly dispid 1;
  1016.     function Add(const strName: WideString; var varVal: OleVariant; 
  1017.                  bPropagatesToSubclass: WordBool; bPropagatesToInstance: WordBool; 
  1018.                  bIsOverridable: WordBool; iFlags: Integer): ISWbemQualifier; dispid 2;
  1019.     procedure Remove(const strName: WideString; iFlags: Integer); dispid 3;
  1020.   end;
  1021. // *********************************************************************//
  1022. // Interface: ISWbemQualifier
  1023. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1024. // GUID:      {79B05932-D3B7-11D1-8B06-00600806D9B6}
  1025. // *********************************************************************//
  1026.   ISWbemQualifier = interface(IDispatch)
  1027.     ['{79B05932-D3B7-11D1-8B06-00600806D9B6}']
  1028.     function Get_Value: OleVariant; safecall;
  1029.     procedure Set_Value(var varValue: OleVariant); safecall;
  1030.     function Get_Name: WideString; safecall;
  1031.     function Get_IsLocal: WordBool; safecall;
  1032.     function Get_PropagatesToSubclass: WordBool; safecall;
  1033.     procedure Set_PropagatesToSubclass(bPropagatesToSubclass: WordBool); safecall;
  1034.     function Get_PropagatesToInstance: WordBool; safecall;
  1035.     procedure Set_PropagatesToInstance(bPropagatesToInstance: WordBool); safecall;
  1036.     function Get_IsOverridable: WordBool; safecall;
  1037.     procedure Set_IsOverridable(bIsOverridable: WordBool); safecall;
  1038.     function Get_IsAmended: WordBool; safecall;
  1039.     property Name: WideString read Get_Name;
  1040.     property IsLocal: WordBool read Get_IsLocal;
  1041.     property PropagatesToSubclass: WordBool read Get_PropagatesToSubclass write Set_PropagatesToSubclass;
  1042.     property PropagatesToInstance: WordBool read Get_PropagatesToInstance write Set_PropagatesToInstance;
  1043.     property IsOverridable: WordBool read Get_IsOverridable write Set_IsOverridable;
  1044.     property IsAmended: WordBool read Get_IsAmended;
  1045.   end;
  1046. // *********************************************************************//
  1047. // DispIntf:  ISWbemQualifierDisp
  1048. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1049. // GUID:      {79B05932-D3B7-11D1-8B06-00600806D9B6}
  1050. // *********************************************************************//
  1051.   ISWbemQualifierDisp = dispinterface
  1052.     ['{79B05932-D3B7-11D1-8B06-00600806D9B6}']
  1053.     function Value: OleVariant; dispid 0;
  1054.     property Name: WideString readonly dispid 1;
  1055.     property IsLocal: WordBool readonly dispid 2;
  1056.     property PropagatesToSubclass: WordBool dispid 3;
  1057.     property PropagatesToInstance: WordBool dispid 4;
  1058.     property IsOverridable: WordBool dispid 5;
  1059.     property IsAmended: WordBool readonly dispid 6;
  1060.   end;
  1061. // *********************************************************************//
  1062. // Interface: ISWbemPropertySet
  1063. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1064. // GUID:      {DEA0A7B2-D4BA-11D1-8B09-00600806D9B6}
  1065. // *********************************************************************//
  1066.   ISWbemPropertySet = interface(IDispatch)
  1067.     ['{DEA0A7B2-D4BA-11D1-8B09-00600806D9B6}']
  1068.     function Get__NewEnum: IUnknown; safecall;
  1069.     function Item(const strName: WideString; iFlags: Integer): ISWbemProperty; safecall;
  1070.     function Get_Count: Integer; safecall;
  1071.     function Add(const strName: WideString; iCimType: WbemCimtypeEnum; bIsArray: WordBool; 
  1072.                  iFlags: Integer): ISWbemProperty; safecall;
  1073.     procedure Remove(const strName: WideString; iFlags: Integer); safecall;
  1074.     property _NewEnum: IUnknown read Get__NewEnum;
  1075.     property Count: Integer read Get_Count;
  1076.   end;
  1077. // *********************************************************************//
  1078. // DispIntf:  ISWbemPropertySetDisp
  1079. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1080. // GUID:      {DEA0A7B2-D4BA-11D1-8B09-00600806D9B6}
  1081. // *********************************************************************//
  1082.   ISWbemPropertySetDisp = dispinterface
  1083.     ['{DEA0A7B2-D4BA-11D1-8B09-00600806D9B6}']
  1084.     property _NewEnum: IUnknown readonly dispid -4;
  1085.     function Item(const strName: WideString; iFlags: Integer): ISWbemProperty; dispid 0;
  1086.     property Count: Integer readonly dispid 1;
  1087.     function Add(const strName: WideString; iCimType: WbemCimtypeEnum; bIsArray: WordBool; 
  1088.                  iFlags: Integer): ISWbemProperty; dispid 2;
  1089.     procedure Remove(const strName: WideString; iFlags: Integer); dispid 3;
  1090.   end;
  1091. // *********************************************************************//
  1092. // Interface: ISWbemProperty
  1093. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1094. // GUID:      {1A388F98-D4BA-11D1-8B09-00600806D9B6}
  1095. // *********************************************************************//
  1096.   ISWbemProperty = interface(IDispatch)
  1097.     ['{1A388F98-D4BA-11D1-8B09-00600806D9B6}']
  1098.     function Get_Value: OleVariant; safecall;
  1099.     procedure Set_Value(var varValue: OleVariant); safecall;
  1100.     function Get_Name: WideString; safecall;
  1101.     function Get_IsLocal: WordBool; safecall;
  1102.     function Get_Origin: WideString; safecall;
  1103.     function Get_CIMType: WbemCimtypeEnum; safecall;
  1104.     function Get_Qualifiers_: ISWbemQualifierSet; safecall;
  1105.     function Get_IsArray: WordBool; safecall;
  1106.     property Name: WideString read Get_Name;
  1107.     property IsLocal: WordBool read Get_IsLocal;
  1108.     property Origin: WideString read Get_Origin;
  1109.     property CIMType: WbemCimtypeEnum read Get_CIMType;
  1110.     property Qualifiers_: ISWbemQualifierSet read Get_Qualifiers_;
  1111.     property IsArray: WordBool read Get_IsArray;
  1112.   end;
  1113. // *********************************************************************//
  1114. // DispIntf:  ISWbemPropertyDisp
  1115. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1116. // GUID:      {1A388F98-D4BA-11D1-8B09-00600806D9B6}
  1117. // *********************************************************************//
  1118.   ISWbemPropertyDisp = dispinterface
  1119.     ['{1A388F98-D4BA-11D1-8B09-00600806D9B6}']
  1120.     function Value: OleVariant; dispid 0;
  1121.     property Name: WideString readonly dispid 1;
  1122.     property IsLocal: WordBool readonly dispid 2;
  1123.     property Origin: WideString readonly dispid 3;
  1124.     property CIMType: WbemCimtypeEnum readonly dispid 4;
  1125.     property Qualifiers_: ISWbemQualifierSet readonly dispid 5;
  1126.     property IsArray: WordBool readonly dispid 6;
  1127.   end;
  1128. // *********************************************************************//
  1129. // Interface: ISWbemMethodSet
  1130. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1131. // GUID:      {C93BA292-D955-11D1-8B09-00600806D9B6}
  1132. // *********************************************************************//
  1133.   ISWbemMethodSet = interface(IDispatch)
  1134.     ['{C93BA292-D955-11D1-8B09-00600806D9B6}']
  1135.     function Get__NewEnum: IUnknown; safecall;
  1136.     function Item(const strName: WideString; iFlags: Integer): ISWbemMethod; safecall;
  1137.     function Get_Count: Integer; safecall;
  1138.     property _NewEnum: IUnknown read Get__NewEnum;
  1139.     property Count: Integer read Get_Count;
  1140.   end;
  1141. // *********************************************************************//
  1142. // DispIntf:  ISWbemMethodSetDisp
  1143. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1144. // GUID:      {C93BA292-D955-11D1-8B09-00600806D9B6}
  1145. // *********************************************************************//
  1146.   ISWbemMethodSetDisp = dispinterface
  1147.     ['{C93BA292-D955-11D1-8B09-00600806D9B6}']
  1148.     property _NewEnum: IUnknown readonly dispid -4;
  1149.     function Item(const strName: WideString; iFlags: Integer): ISWbemMethod; dispid 0;
  1150.     property Count: Integer readonly dispid 1;
  1151.   end;
  1152. // *********************************************************************//
  1153. // Interface: ISWbemMethod
  1154. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1155. // GUID:      {422E8E90-D955-11D1-8B09-00600806D9B6}
  1156. // *********************************************************************//
  1157.   ISWbemMethod = interface(IDispatch)
  1158.     ['{422E8E90-D955-11D1-8B09-00600806D9B6}']
  1159.     function Get_Name: WideString; safecall;
  1160.     function Get_Origin: WideString; safecall;
  1161.     function Get_InParameters: ISWbemObject; safecall;
  1162.     function Get_OutParameters: ISWbemObject; safecall;
  1163.     function Get_Qualifiers_: ISWbemQualifierSet; safecall;
  1164.     property Name: WideString read Get_Name;
  1165.     property Origin: WideString read Get_Origin;
  1166.     property InParameters: ISWbemObject read Get_InParameters;
  1167.     property OutParameters: ISWbemObject read Get_OutParameters;
  1168.     property Qualifiers_: ISWbemQualifierSet read Get_Qualifiers_;
  1169.   end;
  1170. // *********************************************************************//
  1171. // DispIntf:  ISWbemMethodDisp
  1172. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1173. // GUID:      {422E8E90-D955-11D1-8B09-00600806D9B6}
  1174. // *********************************************************************//
  1175.   ISWbemMethodDisp = dispinterface
  1176.     ['{422E8E90-D955-11D1-8B09-00600806D9B6}']
  1177.     property Name: WideString readonly dispid 1;
  1178.     property Origin: WideString readonly dispid 2;
  1179.     property InParameters: ISWbemObject readonly dispid 3;
  1180.     property OutParameters: ISWbemObject readonly dispid 4;
  1181.     property Qualifiers_: ISWbemQualifierSet readonly dispid 5;
  1182.   end;
  1183. // *********************************************************************//
  1184. // Interface: ISWbemEventSource
  1185. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1186. // GUID:      {27D54D92-0EBE-11D2-8B22-00600806D9B6}
  1187. // *********************************************************************//
  1188.   ISWbemEventSource = interface(IDispatch)
  1189.     ['{27D54D92-0EBE-11D2-8B22-00600806D9B6}']
  1190.     function NextEvent(iTimeoutMs: Integer): ISWbemObject; safecall;
  1191.     function Get_Security_: ISWbemSecurity; safecall;
  1192.     property Security_: ISWbemSecurity read Get_Security_;
  1193.   end;
  1194. // *********************************************************************//
  1195. // DispIntf:  ISWbemEventSourceDisp
  1196. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1197. // GUID:      {27D54D92-0EBE-11D2-8B22-00600806D9B6}
  1198. // *********************************************************************//
  1199.   ISWbemEventSourceDisp = dispinterface
  1200.     ['{27D54D92-0EBE-11D2-8B22-00600806D9B6}']
  1201.     function NextEvent(iTimeoutMs: Integer): ISWbemObject; dispid 1;
  1202.     property Security_: ISWbemSecurity readonly dispid 2;
  1203.   end;
  1204. // *********************************************************************//
  1205. // Interface: ISWbemLocator
  1206. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1207. // GUID:      {76A6415B-CB41-11D1-8B02-00600806D9B6}
  1208. // *********************************************************************//
  1209.   ISWbemLocator = interface(IDispatch)
  1210.     ['{76A6415B-CB41-11D1-8B02-00600806D9B6}']
  1211.     function ConnectServer(const strServer: WideString; const strNamespace: WideString; 
  1212.                            const strUser: WideString; const strPassword: WideString; 
  1213.                            const strLocale: WideString; const strAuthority: WideString; 
  1214.                            iSecurityFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemServices; safecall;
  1215.     function Get_Security_: ISWbemSecurity; safecall;
  1216.     property Security_: ISWbemSecurity read Get_Security_;
  1217.   end;
  1218. // *********************************************************************//
  1219. // DispIntf:  ISWbemLocatorDisp
  1220. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1221. // GUID:      {76A6415B-CB41-11D1-8B02-00600806D9B6}
  1222. // *********************************************************************//
  1223.   ISWbemLocatorDisp = dispinterface
  1224.     ['{76A6415B-CB41-11D1-8B02-00600806D9B6}']
  1225.     function ConnectServer(const strServer: WideString; const strNamespace: WideString; 
  1226.                            const strUser: WideString; const strPassword: WideString; 
  1227.                            const strLocale: WideString; const strAuthority: WideString; 
  1228.                            iSecurityFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemServices; dispid 1;
  1229.     property Security_: ISWbemSecurity readonly dispid 2;
  1230.   end;
  1231. // *********************************************************************//
  1232. // Interface: ISWbemLastError
  1233. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1234. // GUID:      {D962DB84-D4BB-11D1-8B09-00600806D9B6}
  1235. // *********************************************************************//
  1236.   ISWbemLastError = interface(ISWbemObject)
  1237.     ['{D962DB84-D4BB-11D1-8B09-00600806D9B6}']
  1238.   end;
  1239. // *********************************************************************//
  1240. // DispIntf:  ISWbemLastErrorDisp
  1241. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1242. // GUID:      {D962DB84-D4BB-11D1-8B09-00600806D9B6}
  1243. // *********************************************************************//
  1244.   ISWbemLastErrorDisp = dispinterface
  1245.     ['{D962DB84-D4BB-11D1-8B09-00600806D9B6}']
  1246.     function Put_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; dispid 1;
  1247.     procedure PutAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1248.                         const objWbemNamedValueSet: IDispatch; const objWbemAsyncContext: IDispatch); dispid 2;
  1249.     procedure Delete_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); dispid 3;
  1250.     procedure DeleteAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1251.                            const objWbemNamedValueSet: IDispatch; 
  1252.                            const objWbemAsyncContext: IDispatch); dispid 4;
  1253.     function Instances_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 5;
  1254.     procedure InstancesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1255.                               const objWbemNamedValueSet: IDispatch; 
  1256.                               const objWbemAsyncContext: IDispatch); dispid 6;
  1257.     function Subclasses_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 7;
  1258.     procedure SubclassesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1259.                                const objWbemNamedValueSet: IDispatch; 
  1260.                                const objWbemAsyncContext: IDispatch); dispid 8;
  1261.     function Associators_(const strAssocClass: WideString; const strResultClass: WideString; 
  1262.                           const strResultRole: WideString; const strRole: WideString; 
  1263.                           bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1264.                           const strRequiredAssocQualifier: WideString; 
  1265.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  1266.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 9;
  1267.     procedure AssociatorsAsync_(const objWbemSink: IDispatch; const strAssocClass: WideString; 
  1268.                                 const strResultClass: WideString; const strResultRole: WideString; 
  1269.                                 const strRole: WideString; bClassesOnly: WordBool; 
  1270.                                 bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  1271.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  1272.                                 const objWbemNamedValueSet: IDispatch; 
  1273.                                 const objWbemAsyncContext: IDispatch); dispid 10;
  1274.     function References_(const strResultClass: WideString; const strRole: WideString; 
  1275.                          bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1276.                          const strRequiredQualifier: WideString; iFlags: Integer; 
  1277.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 11;
  1278.     procedure ReferencesAsync_(const objWbemSink: IDispatch; const strResultClass: WideString; 
  1279.                                const strRole: WideString; bClassesOnly: WordBool; 
  1280.                                bSchemaOnly: WordBool; const strRequiredQualifier: WideString; 
  1281.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1282.                                const objWbemAsyncContext: IDispatch); dispid 12;
  1283.     function ExecMethod_(const strMethodName: WideString; const objWbemInParameters: IDispatch; 
  1284.                          iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 13;
  1285.     procedure ExecMethodAsync_(const objWbemSink: IDispatch; const strMethodName: WideString; 
  1286.                                const objWbemInParameters: IDispatch; iFlags: Integer; 
  1287.                                const objWbemNamedValueSet: IDispatch; 
  1288.                                const objWbemAsyncContext: IDispatch); dispid 14;
  1289.     function Clone_: ISWbemObject; dispid 15;
  1290.     function GetObjectText_(iFlags: Integer): WideString; dispid 16;
  1291.     function SpawnDerivedClass_(iFlags: Integer): ISWbemObject; dispid 17;
  1292.     function SpawnInstance_(iFlags: Integer): ISWbemObject; dispid 18;
  1293.     function CompareTo_(const objWbemObject: IDispatch; iFlags: Integer): WordBool; dispid 19;
  1294.     property Qualifiers_: ISWbemQualifierSet readonly dispid 20;
  1295.     property Properties_: ISWbemPropertySet readonly dispid 21;
  1296.     property Methods_: ISWbemMethodSet readonly dispid 22;
  1297.     property Derivation_: OleVariant readonly dispid 23;
  1298.     property Path_: ISWbemObjectPath readonly dispid 24;
  1299.     property Security_: ISWbemSecurity readonly dispid 25;
  1300.   end;
  1301. // *********************************************************************//
  1302. // DispIntf:  ISWbemSinkEvents
  1303. // Flags:     (4240) Hidden NonExtensible Dispatchable
  1304. // GUID:      {75718CA0-F029-11D1-A1AC-00C04FB6C223}
  1305. // *********************************************************************//
  1306.   ISWbemSinkEvents = dispinterface
  1307.     ['{75718CA0-F029-11D1-A1AC-00C04FB6C223}']
  1308.     procedure OnObjectReady(const objWbemObject: ISWbemObject; 
  1309.                             const objWbemAsyncContext: ISWbemNamedValueSet); dispid 1;
  1310.     procedure OnCompleted(iHResult: WbemErrorEnum; const objWbemErrorObject: ISWbemObject; 
  1311.                           const objWbemAsyncContext: ISWbemNamedValueSet); dispid 2;
  1312.     procedure OnProgress(iUpperBound: Integer; iCurrent: Integer; const strMessage: WideString; 
  1313.                          const objWbemAsyncContext: ISWbemNamedValueSet); dispid 3;
  1314.     procedure OnObjectPut(const objWbemObjectPath: ISWbemObjectPath; 
  1315.                           const objWbemAsyncContext: ISWbemNamedValueSet); dispid 4;
  1316.   end;
  1317. // *********************************************************************//
  1318. // Interface: ISWbemSink
  1319. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1320. // GUID:      {75718C9F-F029-11D1-A1AC-00C04FB6C223}
  1321. // *********************************************************************//
  1322.   ISWbemSink = interface(IDispatch)
  1323.     ['{75718C9F-F029-11D1-A1AC-00C04FB6C223}']
  1324.     procedure Cancel; safecall;
  1325.   end;
  1326. // *********************************************************************//
  1327. // DispIntf:  ISWbemSinkDisp
  1328. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1329. // GUID:      {75718C9F-F029-11D1-A1AC-00C04FB6C223}
  1330. // *********************************************************************//
  1331.   ISWbemSinkDisp = dispinterface
  1332.     ['{75718C9F-F029-11D1-A1AC-00C04FB6C223}']
  1333.     procedure Cancel; dispid 1;
  1334.   end;
  1335. // *********************************************************************//
  1336. // Interface: ISWbemServicesEx
  1337. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1338. // GUID:      {D2F68443-85DC-427E-91D8-366554CC754C}
  1339. // *********************************************************************//
  1340.   ISWbemServicesEx = interface(ISWbemServices)
  1341.     ['{D2F68443-85DC-427E-91D8-366554CC754C}']
  1342.     function Put(const objWbemObject: ISWbemObjectEx; iFlags: Integer; 
  1343.                  const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; safecall;
  1344.     procedure PutAsync(const objWbemSink: ISWbemSink; const objWbemObject: ISWbemObjectEx; 
  1345.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1346.                        const objWbemAsyncContext: IDispatch); safecall;
  1347.   end;
  1348. // *********************************************************************//
  1349. // DispIntf:  ISWbemServicesExDisp
  1350. // Flags:     (4560) Hidden Dual NonExtensible OleAutomation Dispatchable
  1351. // GUID:      {D2F68443-85DC-427E-91D8-366554CC754C}
  1352. // *********************************************************************//
  1353.   ISWbemServicesExDisp = dispinterface
  1354.     ['{D2F68443-85DC-427E-91D8-366554CC754C}']
  1355.     function Put(const objWbemObject: ISWbemObjectEx; iFlags: Integer; 
  1356.                  const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; dispid 20;
  1357.     procedure PutAsync(const objWbemSink: ISWbemSink; const objWbemObject: ISWbemObjectEx; 
  1358.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1359.                        const objWbemAsyncContext: IDispatch); dispid 21;
  1360.     function Get(const strObjectPath: WideString; iFlags: Integer; 
  1361.                  const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 1;
  1362.     procedure GetAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  1363.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1364.                        const objWbemAsyncContext: IDispatch); dispid 2;
  1365.     procedure Delete(const strObjectPath: WideString; iFlags: Integer; 
  1366.                      const objWbemNamedValueSet: IDispatch); dispid 3;
  1367.     procedure DeleteAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  1368.                           iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1369.                           const objWbemAsyncContext: IDispatch); dispid 4;
  1370.     function InstancesOf(const strClass: WideString; iFlags: Integer; 
  1371.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 5;
  1372.     procedure InstancesOfAsync(const objWbemSink: IDispatch; const strClass: WideString; 
  1373.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1374.                                const objWbemAsyncContext: IDispatch); dispid 6;
  1375.     function SubclassesOf(const strSuperclass: WideString; iFlags: Integer; 
  1376.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 7;
  1377.     procedure SubclassesOfAsync(const objWbemSink: IDispatch; const strSuperclass: WideString; 
  1378.                                 iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1379.                                 const objWbemAsyncContext: IDispatch); dispid 8;
  1380.     function ExecQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  1381.                        iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 9;
  1382.     procedure ExecQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  1383.                              const strQueryLanguage: WideString; lFlags: Integer; 
  1384.                              const objWbemNamedValueSet: IDispatch; 
  1385.                              const objWbemAsyncContext: IDispatch); dispid 10;
  1386.     function AssociatorsOf(const strObjectPath: WideString; const strAssocClass: WideString; 
  1387.                            const strResultClass: WideString; const strResultRole: WideString; 
  1388.                            const strRole: WideString; bClassesOnly: WordBool; 
  1389.                            bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  1390.                            const strRequiredQualifier: WideString; iFlags: Integer; 
  1391.                            const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 11;
  1392.     procedure AssociatorsOfAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  1393.                                  const strAssocClass: WideString; const strResultClass: WideString; 
  1394.                                  const strResultRole: WideString; const strRole: WideString; 
  1395.                                  bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1396.                                  const strRequiredAssocQualifier: WideString; 
  1397.                                  const strRequiredQualifier: WideString; iFlags: Integer; 
  1398.                                  const objWbemNamedValueSet: IDispatch; 
  1399.                                  const objWbemAsyncContext: IDispatch); dispid 12;
  1400.     function ReferencesTo(const strObjectPath: WideString; const strResultClass: WideString; 
  1401.                           const strRole: WideString; bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1402.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  1403.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 13;
  1404.     procedure ReferencesToAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  1405.                                 const strResultClass: WideString; const strRole: WideString; 
  1406.                                 bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1407.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  1408.                                 const objWbemNamedValueSet: IDispatch; 
  1409.                                 const objWbemAsyncContext: IDispatch); dispid 14;
  1410.     function ExecNotificationQuery(const strQuery: WideString; const strQueryLanguage: WideString; 
  1411.                                    iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemEventSource; dispid 15;
  1412.     procedure ExecNotificationQueryAsync(const objWbemSink: IDispatch; const strQuery: WideString; 
  1413.                                          const strQueryLanguage: WideString; iFlags: Integer; 
  1414.                                          const objWbemNamedValueSet: IDispatch; 
  1415.                                          const objWbemAsyncContext: IDispatch); dispid 16;
  1416.     function ExecMethod(const strObjectPath: WideString; const strMethodName: WideString; 
  1417.                         const objWbemInParameters: IDispatch; iFlags: Integer; 
  1418.                         const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 17;
  1419.     procedure ExecMethodAsync(const objWbemSink: IDispatch; const strObjectPath: WideString; 
  1420.                               const strMethodName: WideString; 
  1421.                               const objWbemInParameters: IDispatch; iFlags: Integer; 
  1422.                               const objWbemNamedValueSet: IDispatch; 
  1423.                               const objWbemAsyncContext: IDispatch); dispid 18;
  1424.     property Security_: ISWbemSecurity readonly dispid 19;
  1425.   end;
  1426. // *********************************************************************//
  1427. // Interface: ISWbemObjectEx
  1428. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1429. // GUID:      {269AD56A-8A67-4129-BC8C-0506DCFE9880}
  1430. // *********************************************************************//
  1431.   ISWbemObjectEx = interface(ISWbemObject)
  1432.     ['{269AD56A-8A67-4129-BC8C-0506DCFE9880}']
  1433.     procedure Refresh_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); safecall;
  1434.     function Get_SystemProperties_: ISWbemPropertySet; safecall;
  1435.     function GetText_(iObjectTextFormat: WbemObjectTextFormatEnum; iFlags: Integer; 
  1436.                       const objWbemNamedValueSet: IDispatch): WideString; safecall;
  1437.     procedure SetFromText_(const bsText: WideString; iObjectTextFormat: WbemObjectTextFormatEnum; 
  1438.                            iFlags: Integer; const objWbemNamedValueSet: IDispatch); safecall;
  1439.     property SystemProperties_: ISWbemPropertySet read Get_SystemProperties_;
  1440.   end;
  1441. // *********************************************************************//
  1442. // DispIntf:  ISWbemObjectExDisp
  1443. // Flags:     (4432) Hidden Dual OleAutomation Dispatchable
  1444. // GUID:      {269AD56A-8A67-4129-BC8C-0506DCFE9880}
  1445. // *********************************************************************//
  1446.   ISWbemObjectExDisp = dispinterface
  1447.     ['{269AD56A-8A67-4129-BC8C-0506DCFE9880}']
  1448.     procedure Refresh_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); dispid 26;
  1449.     property SystemProperties_: ISWbemPropertySet readonly dispid 27;
  1450.     function GetText_(iObjectTextFormat: WbemObjectTextFormatEnum; iFlags: Integer; 
  1451.                       const objWbemNamedValueSet: IDispatch): WideString; dispid 28;
  1452.     procedure SetFromText_(const bsText: WideString; iObjectTextFormat: WbemObjectTextFormatEnum; 
  1453.                            iFlags: Integer; const objWbemNamedValueSet: IDispatch); dispid 29;
  1454.     function Put_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectPath; dispid 1;
  1455.     procedure PutAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1456.                         const objWbemNamedValueSet: IDispatch; const objWbemAsyncContext: IDispatch); dispid 2;
  1457.     procedure Delete_(iFlags: Integer; const objWbemNamedValueSet: IDispatch); dispid 3;
  1458.     procedure DeleteAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1459.                            const objWbemNamedValueSet: IDispatch; 
  1460.                            const objWbemAsyncContext: IDispatch); dispid 4;
  1461.     function Instances_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 5;
  1462.     procedure InstancesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1463.                               const objWbemNamedValueSet: IDispatch; 
  1464.                               const objWbemAsyncContext: IDispatch); dispid 6;
  1465.     function Subclasses_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 7;
  1466.     procedure SubclassesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1467.                                const objWbemNamedValueSet: IDispatch; 
  1468.                                const objWbemAsyncContext: IDispatch); dispid 8;
  1469.     function Associators_(const strAssocClass: WideString; const strResultClass: WideString; 
  1470.                           const strResultRole: WideString; const strRole: WideString; 
  1471.                           bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1472.                           const strRequiredAssocQualifier: WideString; 
  1473.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  1474.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 9;
  1475.     procedure AssociatorsAsync_(const objWbemSink: IDispatch; const strAssocClass: WideString; 
  1476.                                 const strResultClass: WideString; const strResultRole: WideString; 
  1477.                                 const strRole: WideString; bClassesOnly: WordBool; 
  1478.                                 bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  1479.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  1480.                                 const objWbemNamedValueSet: IDispatch; 
  1481.                                 const objWbemAsyncContext: IDispatch); dispid 10;
  1482.     function References_(const strResultClass: WideString; const strRole: WideString; 
  1483.                          bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  1484.                          const strRequiredQualifier: WideString; iFlags: Integer; 
  1485.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet; dispid 11;
  1486.     procedure ReferencesAsync_(const objWbemSink: IDispatch; const strResultClass: WideString; 
  1487.                                const strRole: WideString; bClassesOnly: WordBool; 
  1488.                                bSchemaOnly: WordBool; const strRequiredQualifier: WideString; 
  1489.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  1490.                                const objWbemAsyncContext: IDispatch); dispid 12;
  1491.     function ExecMethod_(const strMethodName: WideString; const objWbemInParameters: IDispatch; 
  1492.                          iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObject; dispid 13;
  1493.     procedure ExecMethodAsync_(const objWbemSink: IDispatch; const strMethodName: WideString; 
  1494.                                const objWbemInParameters: IDispatch; iFlags: Integer; 
  1495.                                const objWbemNamedValueSet: IDispatch; 
  1496.                                const objWbemAsyncContext: IDispatch); dispid 14;
  1497.     function Clone_: ISWbemObject; dispid 15;
  1498.     function GetObjectText_(iFlags: Integer): WideString; dispid 16;
  1499.     function SpawnDerivedClass_(iFlags: Integer): ISWbemObject; dispid 17;
  1500.     function SpawnInstance_(iFlags: Integer): ISWbemObject; dispid 18;
  1501.     function CompareTo_(const objWbemObject: IDispatch; iFlags: Integer): WordBool; dispid 19;
  1502.     property Qualifiers_: ISWbemQualifierSet readonly dispid 20;
  1503.     property Properties_: ISWbemPropertySet readonly dispid 21;
  1504.     property Methods_: ISWbemMethodSet readonly dispid 22;
  1505.     property Derivation_: OleVariant readonly dispid 23;
  1506.     property Path_: ISWbemObjectPath readonly dispid 24;
  1507.     property Security_: ISWbemSecurity readonly dispid 25;
  1508.   end;
  1509. // *********************************************************************//
  1510. // Interface: ISWbemDateTime
  1511. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1512. // GUID:      {5E97458A-CF77-11D3-B38F-00105A1F473A}
  1513. // *********************************************************************//
  1514.   ISWbemDateTime = interface(IDispatch)
  1515.     ['{5E97458A-CF77-11D3-B38F-00105A1F473A}']
  1516.     function Get_Value: WideString; safecall;
  1517.     procedure Set_Value(const strValue: WideString); safecall;
  1518.     function Get_Year: Integer; safecall;
  1519.     procedure Set_Year(iYear: Integer); safecall;
  1520.     function Get_YearSpecified: WordBool; safecall;
  1521.     procedure Set_YearSpecified(bYearSpecified: WordBool); safecall;
  1522.     function Get_Month: Integer; safecall;
  1523.     procedure Set_Month(iMonth: Integer); safecall;
  1524.     function Get_MonthSpecified: WordBool; safecall;
  1525.     procedure Set_MonthSpecified(bMonthSpecified: WordBool); safecall;
  1526.     function Get_Day: Integer; safecall;
  1527.     procedure Set_Day(iDay: Integer); safecall;
  1528.     function Get_DaySpecified: WordBool; safecall;
  1529.     procedure Set_DaySpecified(bDaySpecified: WordBool); safecall;
  1530.     function Get_Hours: Integer; safecall;
  1531.     procedure Set_Hours(iHours: Integer); safecall;
  1532.     function Get_HoursSpecified: WordBool; safecall;
  1533.     procedure Set_HoursSpecified(bHoursSpecified: WordBool); safecall;
  1534.     function Get_Minutes: Integer; safecall;
  1535.     procedure Set_Minutes(iMinutes: Integer); safecall;
  1536.     function Get_MinutesSpecified: WordBool; safecall;
  1537.     procedure Set_MinutesSpecified(bMinutesSpecified: WordBool); safecall;
  1538.     function Get_Seconds: Integer; safecall;
  1539.     procedure Set_Seconds(iSeconds: Integer); safecall;
  1540.     function Get_SecondsSpecified: WordBool; safecall;
  1541.     procedure Set_SecondsSpecified(bSecondsSpecified: WordBool); safecall;
  1542.     function Get_Microseconds: Integer; safecall;
  1543.     procedure Set_Microseconds(iMicroseconds: Integer); safecall;
  1544.     function Get_MicrosecondsSpecified: WordBool; safecall;
  1545.     procedure Set_MicrosecondsSpecified(bMicrosecondsSpecified: WordBool); safecall;
  1546.     function Get_UTC: Integer; safecall;
  1547.     procedure Set_UTC(iUTC: Integer); safecall;
  1548.     function Get_UTCSpecified: WordBool; safecall;
  1549.     procedure Set_UTCSpecified(bUTCSpecified: WordBool); safecall;
  1550.     function Get_IsInterval: WordBool; safecall;
  1551.     procedure Set_IsInterval(bIsInterval: WordBool); safecall;
  1552.     function GetVarDate(bIsLocal: WordBool): TDateTime; safecall;
  1553.     procedure SetVarDate(dVarDate: TDateTime; bIsLocal: WordBool); safecall;
  1554.     function GetFileTime(bIsLocal: WordBool): WideString; safecall;
  1555.     procedure SetFileTime(const strFileTime: WideString; bIsLocal: WordBool); safecall;
  1556.     property Value: WideString read Get_Value write Set_Value;
  1557.     property Year: Integer read Get_Year write Set_Year;
  1558.     property YearSpecified: WordBool read Get_YearSpecified write Set_YearSpecified;
  1559.     property Month: Integer read Get_Month write Set_Month;
  1560.     property MonthSpecified: WordBool read Get_MonthSpecified write Set_MonthSpecified;
  1561.     property Day: Integer read Get_Day write Set_Day;
  1562.     property DaySpecified: WordBool read Get_DaySpecified write Set_DaySpecified;
  1563.     property Hours: Integer read Get_Hours write Set_Hours;
  1564.     property HoursSpecified: WordBool read Get_HoursSpecified write Set_HoursSpecified;
  1565.     property Minutes: Integer read Get_Minutes write Set_Minutes;
  1566.     property MinutesSpecified: WordBool read Get_MinutesSpecified write Set_MinutesSpecified;
  1567.     property Seconds: Integer read Get_Seconds write Set_Seconds;
  1568.     property SecondsSpecified: WordBool read Get_SecondsSpecified write Set_SecondsSpecified;
  1569.     property Microseconds: Integer read Get_Microseconds write Set_Microseconds;
  1570.     property MicrosecondsSpecified: WordBool read Get_MicrosecondsSpecified write Set_MicrosecondsSpecified;
  1571.     property UTC: Integer read Get_UTC write Set_UTC;
  1572.     property UTCSpecified: WordBool read Get_UTCSpecified write Set_UTCSpecified;
  1573.     property IsInterval: WordBool read Get_IsInterval write Set_IsInterval;
  1574.   end;
  1575. // *********************************************************************//
  1576. // DispIntf:  ISWbemDateTimeDisp
  1577. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1578. // GUID:      {5E97458A-CF77-11D3-B38F-00105A1F473A}
  1579. // *********************************************************************//
  1580.   ISWbemDateTimeDisp = dispinterface
  1581.     ['{5E97458A-CF77-11D3-B38F-00105A1F473A}']
  1582.     property Value: WideString dispid 0;
  1583.     property Year: Integer dispid 1;
  1584.     property YearSpecified: WordBool dispid 2;
  1585.     property Month: Integer dispid 3;
  1586.     property MonthSpecified: WordBool dispid 4;
  1587.     property Day: Integer dispid 5;
  1588.     property DaySpecified: WordBool dispid 6;
  1589.     property Hours: Integer dispid 7;
  1590.     property HoursSpecified: WordBool dispid 8;
  1591.     property Minutes: Integer dispid 9;
  1592.     property MinutesSpecified: WordBool dispid 10;
  1593.     property Seconds: Integer dispid 11;
  1594.     property SecondsSpecified: WordBool dispid 12;
  1595.     property Microseconds: Integer dispid 13;
  1596.     property MicrosecondsSpecified: WordBool dispid 14;
  1597.     property UTC: Integer dispid 15;
  1598.     property UTCSpecified: WordBool dispid 16;
  1599.     property IsInterval: WordBool dispid 17;
  1600.     function GetVarDate(bIsLocal: WordBool): TDateTime; dispid 18;
  1601.     procedure SetVarDate(dVarDate: TDateTime; bIsLocal: WordBool); dispid 19;
  1602.     function GetFileTime(bIsLocal: WordBool): WideString; dispid 20;
  1603.     procedure SetFileTime(const strFileTime: WideString; bIsLocal: WordBool); dispid 21;
  1604.   end;
  1605. // *********************************************************************//
  1606. // Interface: ISWbemRefresher
  1607. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1608. // GUID:      {14D8250E-D9C2-11D3-B38F-00105A1F473A}
  1609. // *********************************************************************//
  1610.   ISWbemRefresher = interface(IDispatch)
  1611.     ['{14D8250E-D9C2-11D3-B38F-00105A1F473A}']
  1612.     function Get__NewEnum: IUnknown; safecall;
  1613.     function Item(iIndex: Integer): ISWbemRefreshableItem; safecall;
  1614.     function Get_Count: Integer; safecall;
  1615.     function Add(const objWbemServices: ISWbemServicesEx; const bsInstancePath: WideString; 
  1616.                  iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemRefreshableItem; safecall;
  1617.     function AddEnum(const objWbemServices: ISWbemServicesEx; const bsClassName: WideString; 
  1618.                      iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemRefreshableItem; safecall;
  1619.     procedure Remove(iIndex: Integer; iFlags: Integer); safecall;
  1620.     procedure Refresh(iFlags: Integer); safecall;
  1621.     function Get_AutoReconnect: WordBool; safecall;
  1622.     procedure Set_AutoReconnect(bCount: WordBool); safecall;
  1623.     procedure DeleteAll; safecall;
  1624.     property _NewEnum: IUnknown read Get__NewEnum;
  1625.     property Count: Integer read Get_Count;
  1626.     property AutoReconnect: WordBool read Get_AutoReconnect write Set_AutoReconnect;
  1627.   end;
  1628. // *********************************************************************//
  1629. // DispIntf:  ISWbemRefresherDisp
  1630. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1631. // GUID:      {14D8250E-D9C2-11D3-B38F-00105A1F473A}
  1632. // *********************************************************************//
  1633.   ISWbemRefresherDisp = dispinterface
  1634.     ['{14D8250E-D9C2-11D3-B38F-00105A1F473A}']
  1635.     property _NewEnum: IUnknown readonly dispid -4;
  1636.     function Item(iIndex: Integer): ISWbemRefreshableItem; dispid 0;
  1637.     property Count: Integer readonly dispid 1;
  1638.     function Add(const objWbemServices: ISWbemServicesEx; const bsInstancePath: WideString; 
  1639.                  iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemRefreshableItem; dispid 2;
  1640.     function AddEnum(const objWbemServices: ISWbemServicesEx; const bsClassName: WideString; 
  1641.                      iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemRefreshableItem; dispid 3;
  1642.     procedure Remove(iIndex: Integer; iFlags: Integer); dispid 4;
  1643.     procedure Refresh(iFlags: Integer); dispid 5;
  1644.     property AutoReconnect: WordBool dispid 6;
  1645.     procedure DeleteAll; dispid 7;
  1646.   end;
  1647. // *********************************************************************//
  1648. // Interface: ISWbemRefreshableItem
  1649. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1650. // GUID:      {5AD4BF92-DAAB-11D3-B38F-00105A1F473A}
  1651. // *********************************************************************//
  1652.   ISWbemRefreshableItem = interface(IDispatch)
  1653.     ['{5AD4BF92-DAAB-11D3-B38F-00105A1F473A}']
  1654.     function Get_Index: Integer; safecall;
  1655.     function Get_Refresher: ISWbemRefresher; safecall;
  1656.     function Get_IsSet: WordBool; safecall;
  1657.     function Get_Object_: ISWbemObjectEx; safecall;
  1658.     function Get_ObjectSet: ISWbemObjectSet; safecall;
  1659.     procedure Remove(iFlags: Integer); safecall;
  1660.     property Index: Integer read Get_Index;
  1661.     property Refresher: ISWbemRefresher read Get_Refresher;
  1662.     property IsSet: WordBool read Get_IsSet;
  1663.     property Object_: ISWbemObjectEx read Get_Object_;
  1664.     property ObjectSet: ISWbemObjectSet read Get_ObjectSet;
  1665.   end;
  1666. // *********************************************************************//
  1667. // DispIntf:  ISWbemRefreshableItemDisp
  1668. // Flags:     (4544) Dual NonExtensible OleAutomation Dispatchable
  1669. // GUID:      {5AD4BF92-DAAB-11D3-B38F-00105A1F473A}
  1670. // *********************************************************************//
  1671.   ISWbemRefreshableItemDisp = dispinterface
  1672.     ['{5AD4BF92-DAAB-11D3-B38F-00105A1F473A}']
  1673.     property Index: Integer readonly dispid 1;
  1674.     property Refresher: ISWbemRefresher readonly dispid 2;
  1675.     property IsSet: WordBool readonly dispid 3;
  1676.     property Object_: ISWbemObjectEx readonly dispid 4;
  1677.     property ObjectSet: ISWbemObjectSet readonly dispid 5;
  1678.     procedure Remove(iFlags: Integer); dispid 6;
  1679.   end;
  1680. // *********************************************************************//
  1681. // The Class CoSWbemLocator provides a Create and CreateRemote method to          
  1682. // create instances of the default interface ISWbemLocator exposed by              
  1683. // the CoClass SWbemLocator. The functions are intended to be used by             
  1684. // clients wishing to automate the CoClass objects exposed by the         
  1685. // server of this typelibrary.                                            
  1686. // *********************************************************************//
  1687.   CoSWbemLocator = class
  1688.     class function Create: ISWbemLocator;
  1689.     class function CreateRemote(const MachineName: string): ISWbemLocator;
  1690.   end;
  1691. // *********************************************************************//
  1692. // OLE Server Proxy class declaration
  1693. // Server Object    : TSWbemLocator
  1694. // Help String      : Used to obtain Namespace connections
  1695. // Default Interface: ISWbemLocator
  1696. // Def. Intf. DISP? : No
  1697. // Event   Interface: 
  1698. // TypeFlags        : (2) CanCreate
  1699. // *********************************************************************//
  1700. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1701.   TSWbemLocatorProperties= class;
  1702. {$ENDIF}
  1703.   TSWbemLocator = class(TOleServer)
  1704.   private
  1705.     FIntf:        ISWbemLocator;
  1706. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1707.     FProps:       TSWbemLocatorProperties;
  1708.     function      GetServerProperties: TSWbemLocatorProperties;
  1709. {$ENDIF}
  1710.     function      GetDefaultInterface: ISWbemLocator;
  1711.   protected
  1712.     procedure InitServerData; override;
  1713.     function Get_Security_: ISWbemSecurity;
  1714.   public
  1715.     constructor Create(AOwner: TComponent); override;
  1716.     destructor  Destroy; override;
  1717.     procedure Connect; override;
  1718.     procedure ConnectTo(svrIntf: ISWbemLocator);
  1719.     procedure Disconnect; override;
  1720.     function ConnectServer(const strServer: WideString; const strNamespace: WideString; 
  1721.                            const strUser: WideString; const strPassword: WideString; 
  1722.                            const strLocale: WideString; const strAuthority: WideString; 
  1723.                            iSecurityFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemServices;
  1724.     property DefaultInterface: ISWbemLocator read GetDefaultInterface;
  1725.     property Security_: ISWbemSecurity read Get_Security_;
  1726.   published
  1727. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1728.     property Server: TSWbemLocatorProperties read GetServerProperties;
  1729. {$ENDIF}
  1730.   end;
  1731. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1732. // *********************************************************************//
  1733. // OLE Server Properties Proxy Class
  1734. // Server Object    : TSWbemLocator
  1735. // (This object is used by the IDE's Property Inspector to allow editing
  1736. //  of the properties of this server)
  1737. // *********************************************************************//
  1738.  TSWbemLocatorProperties = class(TPersistent)
  1739.   private
  1740.     FServer:    TSWbemLocator;
  1741.     function    GetDefaultInterface: ISWbemLocator;
  1742.     constructor Create(AServer: TSWbemLocator);
  1743.   protected
  1744.     function Get_Security_: ISWbemSecurity;
  1745.   public
  1746.     property DefaultInterface: ISWbemLocator read GetDefaultInterface;
  1747.   published
  1748.   end;
  1749. {$ENDIF}
  1750. // *********************************************************************//
  1751. // The Class CoSWbemNamedValueSet provides a Create and CreateRemote method to          
  1752. // create instances of the default interface ISWbemNamedValueSet exposed by              
  1753. // the CoClass SWbemNamedValueSet. The functions are intended to be used by             
  1754. // clients wishing to automate the CoClass objects exposed by the         
  1755. // server of this typelibrary.                                            
  1756. // *********************************************************************//
  1757.   CoSWbemNamedValueSet = class
  1758.     class function Create: ISWbemNamedValueSet;
  1759.     class function CreateRemote(const MachineName: string): ISWbemNamedValueSet;
  1760.   end;
  1761. // *********************************************************************//
  1762. // OLE Server Proxy class declaration
  1763. // Server Object    : TSWbemNamedValueSet
  1764. // Help String      : A collection of Named Values
  1765. // Default Interface: ISWbemNamedValueSet
  1766. // Def. Intf. DISP? : No
  1767. // Event   Interface: 
  1768. // TypeFlags        : (2) CanCreate
  1769. // *********************************************************************//
  1770. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1771.   TSWbemNamedValueSetProperties= class;
  1772. {$ENDIF}
  1773.   TSWbemNamedValueSet = class(TOleServer)
  1774.   private
  1775.     FIntf:        ISWbemNamedValueSet;
  1776. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1777.     FProps:       TSWbemNamedValueSetProperties;
  1778.     function      GetServerProperties: TSWbemNamedValueSetProperties;
  1779. {$ENDIF}
  1780.     function      GetDefaultInterface: ISWbemNamedValueSet;
  1781.   protected
  1782.     procedure InitServerData; override;
  1783.     function Get_Count: Integer;
  1784.   public
  1785.     constructor Create(AOwner: TComponent); override;
  1786.     destructor  Destroy; override;
  1787.     procedure Connect; override;
  1788.     procedure ConnectTo(svrIntf: ISWbemNamedValueSet);
  1789.     procedure Disconnect; override;
  1790.     function Item(const strName: WideString; iFlags: Integer): ISWbemNamedValue;
  1791.     function Add(const strName: WideString; var varValue: OleVariant; iFlags: Integer): ISWbemNamedValue;
  1792.     procedure Remove(const strName: WideString; iFlags: Integer);
  1793.     function Clone: ISWbemNamedValueSet;
  1794.     procedure DeleteAll;
  1795.     property DefaultInterface: ISWbemNamedValueSet read GetDefaultInterface;
  1796.     property Count: Integer read Get_Count;
  1797.   published
  1798. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1799.     property Server: TSWbemNamedValueSetProperties read GetServerProperties;
  1800. {$ENDIF}
  1801.   end;
  1802. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1803. // *********************************************************************//
  1804. // OLE Server Properties Proxy Class
  1805. // Server Object    : TSWbemNamedValueSet
  1806. // (This object is used by the IDE's Property Inspector to allow editing
  1807. //  of the properties of this server)
  1808. // *********************************************************************//
  1809.  TSWbemNamedValueSetProperties = class(TPersistent)
  1810.   private
  1811.     FServer:    TSWbemNamedValueSet;
  1812.     function    GetDefaultInterface: ISWbemNamedValueSet;
  1813.     constructor Create(AServer: TSWbemNamedValueSet);
  1814.   protected
  1815.     function Get_Count: Integer;
  1816.   public
  1817.     property DefaultInterface: ISWbemNamedValueSet read GetDefaultInterface;
  1818.   published
  1819.   end;
  1820. {$ENDIF}
  1821. // *********************************************************************//
  1822. // The Class CoSWbemObjectPath provides a Create and CreateRemote method to          
  1823. // create instances of the default interface ISWbemObjectPath exposed by              
  1824. // the CoClass SWbemObjectPath. The functions are intended to be used by             
  1825. // clients wishing to automate the CoClass objects exposed by the         
  1826. // server of this typelibrary.                                            
  1827. // *********************************************************************//
  1828.   CoSWbemObjectPath = class
  1829.     class function Create: ISWbemObjectPath;
  1830.     class function CreateRemote(const MachineName: string): ISWbemObjectPath;
  1831.   end;
  1832. // *********************************************************************//
  1833. // OLE Server Proxy class declaration
  1834. // Server Object    : TSWbemObjectPath
  1835. // Help String      : Object Path
  1836. // Default Interface: ISWbemObjectPath
  1837. // Def. Intf. DISP? : No
  1838. // Event   Interface: 
  1839. // TypeFlags        : (2) CanCreate
  1840. // *********************************************************************//
  1841. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1842.   TSWbemObjectPathProperties= class;
  1843. {$ENDIF}
  1844.   TSWbemObjectPath = class(TOleServer)
  1845.   private
  1846.     FIntf:        ISWbemObjectPath;
  1847. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1848.     FProps:       TSWbemObjectPathProperties;
  1849.     function      GetServerProperties: TSWbemObjectPathProperties;
  1850. {$ENDIF}
  1851.     function      GetDefaultInterface: ISWbemObjectPath;
  1852.   protected
  1853.     procedure InitServerData; override;
  1854.     function Get_Path: WideString;
  1855.     procedure Set_Path(const strPath: WideString);
  1856.     function Get_RelPath: WideString;
  1857.     procedure Set_RelPath(const strRelPath: WideString);
  1858.     function Get_Server: WideString;
  1859.     procedure Set_Server(const strServer: WideString);
  1860.     function Get_Namespace: WideString;
  1861.     procedure Set_Namespace(const strNamespace: WideString);
  1862.     function Get_ParentNamespace: WideString;
  1863.     function Get_DisplayName: WideString;
  1864.     procedure Set_DisplayName(const strDisplayName: WideString);
  1865.     function Get_Class_: WideString;
  1866.     procedure Set_Class_(const strClass: WideString);
  1867.     function Get_IsClass: WordBool;
  1868.     function Get_IsSingleton: WordBool;
  1869.     function Get_Keys: ISWbemNamedValueSet;
  1870.     function Get_Security_: ISWbemSecurity;
  1871.     function Get_Locale: WideString;
  1872.     procedure Set_Locale(const strLocale: WideString);
  1873.     function Get_Authority: WideString;
  1874.     procedure Set_Authority(const strAuthority: WideString);
  1875.   public
  1876.     constructor Create(AOwner: TComponent); override;
  1877.     destructor  Destroy; override;
  1878.     procedure Connect; override;
  1879.     procedure ConnectTo(svrIntf: ISWbemObjectPath);
  1880.     procedure Disconnect; override;
  1881.     procedure SetAsClass;
  1882.     procedure SetAsSingleton;
  1883.     property DefaultInterface: ISWbemObjectPath read GetDefaultInterface;
  1884.     property ParentNamespace: WideString read Get_ParentNamespace;
  1885.     property IsClass: WordBool read Get_IsClass;
  1886.     property IsSingleton: WordBool read Get_IsSingleton;
  1887.     property Keys: ISWbemNamedValueSet read Get_Keys;
  1888.     property Security_: ISWbemSecurity read Get_Security_;
  1889.     property Path: WideString read Get_Path write Set_Path;
  1890.     property RelPath: WideString read Get_RelPath write Set_RelPath;
  1891.     property Server: WideString read Get_Server write Set_Server;
  1892.     property Namespace: WideString read Get_Namespace write Set_Namespace;
  1893.     property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
  1894.     property Class_: WideString read Get_Class_ write Set_Class_;
  1895.     property Locale: WideString read Get_Locale write Set_Locale;
  1896.     property Authority: WideString read Get_Authority write Set_Authority;
  1897.   published
  1898. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1899.     property Server: TSWbemObjectPathProperties read GetServerProperties;
  1900. {$ENDIF}
  1901.   end;
  1902. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1903. // *********************************************************************//
  1904. // OLE Server Properties Proxy Class
  1905. // Server Object    : TSWbemObjectPath
  1906. // (This object is used by the IDE's Property Inspector to allow editing
  1907. //  of the properties of this server)
  1908. // *********************************************************************//
  1909.  TSWbemObjectPathProperties = class(TPersistent)
  1910.   private
  1911.     FServer:    TSWbemObjectPath;
  1912.     function    GetDefaultInterface: ISWbemObjectPath;
  1913.     constructor Create(AServer: TSWbemObjectPath);
  1914.   protected
  1915.     function Get_Path: WideString;
  1916.     procedure Set_Path(const strPath: WideString);
  1917.     function Get_RelPath: WideString;
  1918.     procedure Set_RelPath(const strRelPath: WideString);
  1919.     function Get_Server: WideString;
  1920.     procedure Set_Server(const strServer: WideString);
  1921.     function Get_Namespace: WideString;
  1922.     procedure Set_Namespace(const strNamespace: WideString);
  1923.     function Get_ParentNamespace: WideString;
  1924.     function Get_DisplayName: WideString;
  1925.     procedure Set_DisplayName(const strDisplayName: WideString);
  1926.     function Get_Class_: WideString;
  1927.     procedure Set_Class_(const strClass: WideString);
  1928.     function Get_IsClass: WordBool;
  1929.     function Get_IsSingleton: WordBool;
  1930.     function Get_Keys: ISWbemNamedValueSet;
  1931.     function Get_Security_: ISWbemSecurity;
  1932.     function Get_Locale: WideString;
  1933.     procedure Set_Locale(const strLocale: WideString);
  1934.     function Get_Authority: WideString;
  1935.     procedure Set_Authority(const strAuthority: WideString);
  1936.   public
  1937.     property DefaultInterface: ISWbemObjectPath read GetDefaultInterface;
  1938.   published
  1939.     property Path: WideString read Get_Path write Set_Path;
  1940.     property RelPath: WideString read Get_RelPath write Set_RelPath;
  1941.     property Server: WideString read Get_Server write Set_Server;
  1942.     property Namespace: WideString read Get_Namespace write Set_Namespace;
  1943.     property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
  1944.     property Class_: WideString read Get_Class_ write Set_Class_;
  1945.     property Locale: WideString read Get_Locale write Set_Locale;
  1946.     property Authority: WideString read Get_Authority write Set_Authority;
  1947.   end;
  1948. {$ENDIF}
  1949. // *********************************************************************//
  1950. // The Class CoSWbemLastError provides a Create and CreateRemote method to          
  1951. // create instances of the default interface ISWbemLastError exposed by              
  1952. // the CoClass SWbemLastError. The functions are intended to be used by             
  1953. // clients wishing to automate the CoClass objects exposed by the         
  1954. // server of this typelibrary.                                            
  1955. // *********************************************************************//
  1956.   CoSWbemLastError = class
  1957.     class function Create: ISWbemLastError;
  1958.     class function CreateRemote(const MachineName: string): ISWbemLastError;
  1959.   end;
  1960. // *********************************************************************//
  1961. // OLE Server Proxy class declaration
  1962. // Server Object    : TSWbemLastError
  1963. // Help String      : The last error on the current thread
  1964. // Default Interface: ISWbemLastError
  1965. // Def. Intf. DISP? : No
  1966. // Event   Interface: 
  1967. // TypeFlags        : (2) CanCreate
  1968. // *********************************************************************//
  1969. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1970.   TSWbemLastErrorProperties= class;
  1971. {$ENDIF}
  1972.   TSWbemLastError = class(TOleServer)
  1973.   private
  1974.     FIntf:        ISWbemLastError;
  1975. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  1976.     FProps:       TSWbemLastErrorProperties;
  1977.     function      GetServerProperties: TSWbemLastErrorProperties;
  1978. {$ENDIF}
  1979.     function      GetDefaultInterface: ISWbemLastError;
  1980.   protected
  1981.     procedure InitServerData; override;
  1982.     function Get_Qualifiers_: ISWbemQualifierSet;
  1983.     function Get_Properties_: ISWbemPropertySet;
  1984.     function Get_Methods_: ISWbemMethodSet;
  1985.     function Get_Derivation_: OleVariant;
  1986.     function Get_Path_: ISWbemObjectPath;
  1987.     function Get_Security_: ISWbemSecurity;
  1988.   public
  1989.     constructor Create(AOwner: TComponent); override;
  1990.     destructor  Destroy; override;
  1991.     procedure Connect; override;
  1992.     procedure ConnectTo(svrIntf: ISWbemLastError);
  1993.     procedure Disconnect; override;
  1994.     function Put_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectPath;
  1995.     procedure PutAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1996.                         const objWbemNamedValueSet: IDispatch; const objWbemAsyncContext: IDispatch);
  1997.     procedure Delete_(iFlags: Integer; const objWbemNamedValueSet: IDispatch);
  1998.     procedure DeleteAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  1999.                            const objWbemNamedValueSet: IDispatch; 
  2000.                            const objWbemAsyncContext: IDispatch);
  2001.     function Instances_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet;
  2002.     procedure InstancesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  2003.                               const objWbemNamedValueSet: IDispatch; 
  2004.                               const objWbemAsyncContext: IDispatch);
  2005.     function Subclasses_(iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObjectSet;
  2006.     procedure SubclassesAsync_(const objWbemSink: IDispatch; iFlags: Integer; 
  2007.                                const objWbemNamedValueSet: IDispatch; 
  2008.                                const objWbemAsyncContext: IDispatch);
  2009.     function Associators_(const strAssocClass: WideString; const strResultClass: WideString; 
  2010.                           const strResultRole: WideString; const strRole: WideString; 
  2011.                           bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  2012.                           const strRequiredAssocQualifier: WideString; 
  2013.                           const strRequiredQualifier: WideString; iFlags: Integer; 
  2014.                           const objWbemNamedValueSet: IDispatch): ISWbemObjectSet;
  2015.     procedure AssociatorsAsync_(const objWbemSink: IDispatch; const strAssocClass: WideString; 
  2016.                                 const strResultClass: WideString; const strResultRole: WideString; 
  2017.                                 const strRole: WideString; bClassesOnly: WordBool; 
  2018.                                 bSchemaOnly: WordBool; const strRequiredAssocQualifier: WideString; 
  2019.                                 const strRequiredQualifier: WideString; iFlags: Integer; 
  2020.                                 const objWbemNamedValueSet: IDispatch; 
  2021.                                 const objWbemAsyncContext: IDispatch);
  2022.     function References_(const strResultClass: WideString; const strRole: WideString; 
  2023.                          bClassesOnly: WordBool; bSchemaOnly: WordBool; 
  2024.                          const strRequiredQualifier: WideString; iFlags: Integer; 
  2025.                          const objWbemNamedValueSet: IDispatch): ISWbemObjectSet;
  2026.     procedure ReferencesAsync_(const objWbemSink: IDispatch; const strResultClass: WideString; 
  2027.                                const strRole: WideString; bClassesOnly: WordBool; 
  2028.                                bSchemaOnly: WordBool; const strRequiredQualifier: WideString; 
  2029.                                iFlags: Integer; const objWbemNamedValueSet: IDispatch; 
  2030.                                const objWbemAsyncContext: IDispatch);
  2031.     function ExecMethod_(const strMethodName: WideString; const objWbemInParameters: IDispatch; 
  2032.                          iFlags: Integer; const objWbemNamedValueSet: IDispatch): ISWbemObject;
  2033.     procedure ExecMethodAsync_(const objWbemSink: IDispatch; const strMethodName: WideString; 
  2034.                                const objWbemInParameters: IDispatch; iFlags: Integer; 
  2035.                                const objWbemNamedValueSet: IDispatch; 
  2036.                                const objWbemAsyncContext: IDispatch);
  2037.     function Clone_: ISWbemObject;
  2038.     function GetObjectText_(iFlags: Integer): WideString;
  2039.     function SpawnDerivedClass_(iFlags: Integer): ISWbemObject;
  2040.     function SpawnInstance_(iFlags: Integer): ISWbemObject;
  2041.     function CompareTo_(const objWbemObject: IDispatch; iFlags: Integer): WordBool;
  2042.     property DefaultInterface: ISWbemLastError read GetDefaultInterface;
  2043.     property Qualifiers_: ISWbemQualifierSet read Get_Qualifiers_;
  2044.     property Properties_: ISWbemPropertySet read Get_Properties_;
  2045.     property Methods_: ISWbemMethodSet read Get_Methods_;
  2046.     property Derivation_: OleVariant read Get_Derivation_;
  2047.     property Path_: ISWbemObjectPath read Get_Path_;
  2048.     property Security_: ISWbemSecurity read Get_Security_;
  2049.   published
  2050. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2051.     property Server: TSWbemLastErrorProperties read GetServerProperties;
  2052. {$ENDIF}
  2053.   end;
  2054. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2055. // *********************************************************************//
  2056. // OLE Server Properties Proxy Class
  2057. // Server Object    : TSWbemLastError
  2058. // (This object is used by the IDE's Property Inspector to allow editing
  2059. //  of the properties of this server)
  2060. // *********************************************************************//
  2061.  TSWbemLastErrorProperties = class(TPersistent)
  2062.   private
  2063.     FServer:    TSWbemLastError;
  2064.     function    GetDefaultInterface: ISWbemLastError;
  2065.     constructor Create(AServer: TSWbemLastError);
  2066.   protected
  2067.     function Get_Qualifiers_: ISWbemQualifierSet;
  2068.     function Get_Properties_: ISWbemPropertySet;
  2069.     function Get_Methods_: ISWbemMethodSet;
  2070.     function Get_Derivation_: OleVariant;
  2071.     function Get_Path_: ISWbemObjectPath;
  2072.     function Get_Security_: ISWbemSecurity;
  2073.   public
  2074.     property DefaultInterface: ISWbemLastError read GetDefaultInterface;
  2075.   published
  2076.   end;
  2077. {$ENDIF}
  2078. // *********************************************************************//
  2079. // The Class CoSWbemSink provides a Create and CreateRemote method to          
  2080. // create instances of the default interface ISWbemSink exposed by              
  2081. // the CoClass SWbemSink. The functions are intended to be used by             
  2082. // clients wishing to automate the CoClass objects exposed by the         
  2083. // server of this typelibrary.                                            
  2084. // *********************************************************************//
  2085.   CoSWbemSink = class
  2086.     class function Create: ISWbemSink;
  2087.     class function CreateRemote(const MachineName: string): ISWbemSink;
  2088.   end;
  2089.   TSWbemSinkOnObjectReady = procedure(Sender: TObject; var objWbemObject: OleVariant;
  2090.                                                        var objWbemAsyncContext: OleVariant) of object;
  2091.   TSWbemSinkOnCompleted = procedure(Sender: TObject; iHResult: WbemErrorEnum; 
  2092.                                                      var objWbemErrorObject: OleVariant;
  2093.                                                      var objWbemAsyncContext: OleVariant) of object;
  2094.   TSWbemSinkOnProgress = procedure(Sender: TObject; iUpperBound: Integer; iCurrent: Integer; 
  2095.                                                     var strMessage: OleVariant;
  2096.                                                     var objWbemAsyncContext: OleVariant) of object;
  2097.   TSWbemSinkOnObjectPut = procedure(Sender: TObject; var objWbemObjectPath: OleVariant;
  2098.                                                      var objWbemAsyncContext: OleVariant) of object;
  2099. // *********************************************************************//
  2100. // OLE Server Proxy class declaration
  2101. // Server Object    : TSWbemSink
  2102. // Help String      : A sink for events arising from asynchronous operations
  2103. // Default Interface: ISWbemSink
  2104. // Def. Intf. DISP? : No
  2105. // Event   Interface: ISWbemSinkEvents
  2106. // TypeFlags        : (2) CanCreate
  2107. // *********************************************************************//
  2108. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2109.   TSWbemSinkProperties= class;
  2110. {$ENDIF}
  2111.   TSWbemSink = class(TOleServer)
  2112.   private
  2113.     FOnObjectReady: TSWbemSinkOnObjectReady;
  2114.     FOnCompleted: TSWbemSinkOnCompleted;
  2115.     FOnProgress: TSWbemSinkOnProgress;
  2116.     FOnObjectPut: TSWbemSinkOnObjectPut;
  2117.     FIntf:        ISWbemSink;
  2118. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2119.     FProps:       TSWbemSinkProperties;
  2120.     function      GetServerProperties: TSWbemSinkProperties;
  2121. {$ENDIF}
  2122.     function      GetDefaultInterface: ISWbemSink;
  2123.   protected
  2124.     procedure InitServerData; override;
  2125.     procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
  2126.   public
  2127.     constructor Create(AOwner: TComponent); override;
  2128.     destructor  Destroy; override;
  2129.     procedure Connect; override;
  2130.     procedure ConnectTo(svrIntf: ISWbemSink);
  2131.     procedure Disconnect; override;
  2132.     procedure Cancel;
  2133.     property DefaultInterface: ISWbemSink read GetDefaultInterface;
  2134.   published
  2135. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2136.     property Server: TSWbemSinkProperties read GetServerProperties;
  2137. {$ENDIF}
  2138.     property OnObjectReady: TSWbemSinkOnObjectReady read FOnObjectReady write FOnObjectReady;
  2139.     property OnCompleted: TSWbemSinkOnCompleted read FOnCompleted write FOnCompleted;
  2140.     property OnProgress: TSWbemSinkOnProgress read FOnProgress write FOnProgress;
  2141.     property OnObjectPut: TSWbemSinkOnObjectPut read FOnObjectPut write FOnObjectPut;
  2142.   end;
  2143. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2144. // *********************************************************************//
  2145. // OLE Server Properties Proxy Class
  2146. // Server Object    : TSWbemSink
  2147. // (This object is used by the IDE's Property Inspector to allow editing
  2148. //  of the properties of this server)
  2149. // *********************************************************************//
  2150.  TSWbemSinkProperties = class(TPersistent)
  2151.   private
  2152.     FServer:    TSWbemSink;
  2153.     function    GetDefaultInterface: ISWbemSink;
  2154.     constructor Create(AServer: TSWbemSink);
  2155.   protected
  2156.   public
  2157.     property DefaultInterface: ISWbemSink read GetDefaultInterface;
  2158.   published
  2159.   end;
  2160. {$ENDIF}
  2161. // *********************************************************************//
  2162. // The Class CoSWbemDateTime provides a Create and CreateRemote method to          
  2163. // create instances of the default interface ISWbemDateTime exposed by              
  2164. // the CoClass SWbemDateTime. The functions are intended to be used by             
  2165. // clients wishing to automate the CoClass objects exposed by the         
  2166. // server of this typelibrary.                                            
  2167. // *********************************************************************//
  2168.   CoSWbemDateTime = class
  2169.     class function Create: ISWbemDateTime;
  2170.     class function CreateRemote(const MachineName: string): ISWbemDateTime;
  2171.   end;
  2172. // *********************************************************************//
  2173. // OLE Server Proxy class declaration
  2174. // Server Object    : TSWbemDateTime
  2175. // Help String      : Date & Time
  2176. // Default Interface: ISWbemDateTime
  2177. // Def. Intf. DISP? : No
  2178. // Event   Interface: 
  2179. // TypeFlags        : (2) CanCreate
  2180. // *********************************************************************//
  2181. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2182.   TSWbemDateTimeProperties= class;
  2183. {$ENDIF}
  2184.   TSWbemDateTime = class(TOleServer)
  2185.   private
  2186.     FIntf:        ISWbemDateTime;
  2187. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  2188.     FProps:       TSWbemDateTimeProperties;
  2189.     function      GetServerProperties: TSWbemDateTimeProperties;
  2190. {$ENDIF}
  2191.     function      GetDefaultInterface: ISWbemDateTime;
  2192.   protected
  2193.     procedure InitServerData; override;
  2194.     function Get_Value: WideString;
  2195.     procedure Set_Value(const strValue: WideString);
  2196.     function Get_Year: Integer;
  2197.     procedure Set_Year(iYear: Integer);
  2198.     function Get_YearSpecified: WordBool;
  2199.     procedure Set_YearSpecified(bYearSpecified: WordBool);
  2200.     function Get_Month: Integer;
  2201.     procedure Set_Month(iMonth: Integer);
  2202.     function Get_MonthSpecified: WordBool;
  2203.     procedure Set_MonthSpecified(bMonthSpecified: WordBool);
  2204.     function Get_Day: Integer;
  2205.     procedure Set_Day(iDay: Integer);
  2206.     function Get_DaySpecified: WordBool;