2 * Copyright 2013 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define threading
(model
)
24 #define vi_progid
(str
)
28 uuid(565783c6
-cb41
-11d1
-8b02
-00600806d9b6
),
29 helpstring("Microsoft WMI Scripting V1.2 Library"),
36 importlib
("stdole2.tlb");
38 interface ISWbemEventSource
;
39 interface ISWbemLocator
;
40 interface ISWbemMethod
;
41 interface ISWbemMethodSet
;
42 interface ISWbemNamedValue
;
43 interface ISWbemNamedValueSet
;
44 interface ISWbemObject
;
45 interface ISWbemObjectPath
;
46 interface ISWbemObjectSet
;
47 interface ISWbemPrivilege
;
48 interface ISWbemPrivilegeSet
;
49 interface ISWbemProperty
;
50 interface ISWbemPropertySet
;
51 interface ISWbemQualifier
;
52 interface ISWbemQualifierSet
;
53 interface ISWbemSecurity
;
54 interface ISWbemServices
;
59 uuid(bf078c2a
-07d9
-11d2
-8b21
-00600806d9b6
)
63 wbemTimeoutInfinite
= 0xffffffff
69 uuid(4a249b72
-fc9a
-11d1
-8b1e
-00600806d9b6
)
71 enum WbemChangeFlagEnum
73 wbemChangeFlagCreateOrUpdate
= 0,
74 wbemChangeFlagUpdateOnly
= 0x00000001,
75 wbemChangeFlagCreateOnly
= 0x00000002,
76 wbemChangeFlagUpdateCompatible
= 0x00000000,
77 wbemChangeFlagUpdateSafeMode
= 0x00000020,
78 wbemChangeFlagUpdateForceMode
= 0x00000040,
79 wbemChangeFlagStrongValidation
= 0x00000080,
80 wbemChangeFlagAdvisory
= 0x00010000
86 uuid(4a249b73
-fc9a
-11d1
-8b1e
-00600806d9b6
)
90 wbemFlagReturnImmediately
= 0x00010,
91 wbemFlagReturnWhenComplete
= 0,
92 wbemFlagBidirectional
= 0,
93 wbemFlagForwardOnly
= 0x00020,
94 wbemFlagNoErrorObject
= 0x00040,
95 wbemFlagReturnErrorObject
= 0,
96 wbemFlagSendStatus
= 0x00080,
97 wbemFlagDontSendStatus
= 0,
98 wbemFlagEnsureLocatable
= 0x00100,
99 wbemFlagDirectRead
= 0x00200,
100 wbemFlagSendOnlySelected
= 0,
101 wbemFlagUseAmendedQualifiers
= 0x20000,
102 wbemFlagGetDefault
= 0x0,
103 wbemFlagSpawnInstance
= 0x00001,
104 wbemFlagUseCurrentTime
= 0x00001
110 uuid(4a249b76
-fc9a
-11d1
-8b1e
-00600806d9b6
)
112 enum WbemQueryFlagEnum
115 wbemQueryFlagShallow
,
116 wbemQueryFlagPrototype
122 uuid(4A249B79
-FC9A
-11d1
-8B1E
-00600806D9B6
)
124 enum WbemComparisonFlagEnum
126 wbemComparisonFlagIncludeAll
= 0,
127 wbemComparisonFlagIgnoreQualifiers
= 1,
128 wbemComparisonFlagIgnoreObjectSource
= 2,
129 wbemComparisonFlagIgnoreDefaultValues
= 4,
130 wbemComparisonFlagIgnoreClass
= 8,
131 wbemComparisonFlagIgnoreCase
= 16,
132 wbemComparisonFlagIgnoreFlavor
= 32
133 } WbemComparisonFlagEnum
;
138 uuid(27d54d92
-0ebe
-11d2
-8b22
-00600806d9b6
),
144 interface ISWbemEventSource
: IDispatch
148 [in, defaultvalue(wbemTimeoutInfinite
)] long iTimeoutMs
,
149 [out, retval] ISWbemObject
**objWbemObject
);
153 [out, retval] ISWbemSecurity
**objWbemSecurity
);
159 uuid(76a6415b
-cb41
-11d1
-8b02
-00600806d9b6
),
163 pointer_default(unique)
165 interface ISWbemLocator
: IDispatch
168 HRESULT ConnectServer
(
169 [in, defaultvalue(".")] BSTR strServer
,
170 [in, defaultvalue("")] BSTR strNamespace
,
171 [in, defaultvalue("")] BSTR strUser
,
172 [in, defaultvalue("")] BSTR strPassword
,
173 [in, defaultvalue("")] BSTR strLocale
,
174 [in, defaultvalue("")] BSTR strAuthority
,
175 [in, defaultvalue(0)] long iSecurityFlags
,
176 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
177 [out, retval] ISWbemServices
**objWbemServices
);
180 HRESULT Security_
([out, retval] ISWbemSecurity
**objWbemSecurity
);
186 uuid(422e8e90
-d955
-11d1
-8b09
-00600806d9b6
),
190 pointer_default(unique),
193 interface ISWbemMethod
: IDispatch
197 [out, retval] BSTR *strName
);
201 [out, retval] BSTR *strOrigin
);
204 HRESULT InParameters
(
205 [out, retval] ISWbemObject
**objWbemInParameters
);
208 HRESULT OutParameters
(
209 [out, retval] ISWbemObject
**objWbemOutParameters
);
213 [out, retval] ISWbemQualifierSet
**objWbemQualifierSet
);
219 uuid(c93ba292
-d955
-11d1
-8b09
-00600806d9b6
),
225 interface ISWbemMethodSet
: IDispatch
227 [ id(DISPID_NEWENUM
), propget, restricted ]
229 [out, retval] IUnknown
**pUnk
);
234 [in, defaultvalue(0)] long iFlags
,
235 [out, retval] ISWbemMethod
**objWbemMethod
);
239 [out, retval] long *iCount
);
245 uuid(76a64164
-cb41
-11d1
-8b02
-00600806d9b6
),
250 interface ISWbemNamedValue
: IDispatch
252 [ id(DISPID_VALUE
), propget ]
254 [out, retval] VARIANT *varValue
);
256 [ id(DISPID_VALUE
), propput ]
258 [in] VARIANT *varValue
);
262 [out, retval] BSTR *strName
);
268 uuid(cf2376ea
-ce8c
-11d1
-8b05
-00600806d9b6
),
273 interface ISWbemNamedValueSet
: IDispatch
275 [ id(DISPID_NEWENUM
), propget, restricted ]
277 [out, retval] IUnknown
**pUnk
);
282 [in, defaultvalue(0)] long iFlags
,
283 [out, retval] ISWbemNamedValue
**objWbemNamedValue
);
287 [out, retval] long *iCount
);
292 [in] VARIANT *varValue
,
293 [in, defaultvalue(0)] long iFlags
,
294 [out, retval] ISWbemNamedValue
**objWbemNamedValue
);
299 [in, defaultvalue(0)] long iFlags
);
303 [out, retval] ISWbemNamedValueSet
**objWbemNamedValueSet
);
312 uuid(76A6415A
-CB41
-11d1
-8B02
-00600806D9B6
),
317 interface ISWbemObject
: IDispatch
321 [in, defaultvalue(wbemChangeFlagCreateOrUpdate
)] long iFlags
,
322 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
323 [out, retval] ISWbemObjectPath
**objWbemObjectPath
);
327 [in] IDispatch
*objWbemSink
,
328 [in, defaultvalue(wbemChangeFlagCreateOrUpdate
)] long iFlags
,
329 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
330 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
334 [in, defaultvalue(0)] long iFlags
,
335 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
);
338 HRESULT DeleteAsync_
(
339 [in] IDispatch
*objWbemSink
,
340 [in, defaultvalue(0)] long iFlags
,
341 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
342 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
346 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
347 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
348 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
351 HRESULT InstancesAsync_
(
352 [in] IDispatch
*objWbemSink
,
353 [in, defaultvalue(0)] long iFlags
,
354 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
355 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
359 [in, defaultvalue(wbemFlagReturnImmediately|wbemQueryFlagDeep
)] long iFlags
,
360 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
361 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
364 HRESULT SubclassesAsync_
(
365 [in] IDispatch
*objWbemSink
,
366 [in, defaultvalue(wbemQueryFlagDeep
)] long iFlags
,
367 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
368 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
371 HRESULT Associators_
(
372 [in, defaultvalue("")] BSTR strAssocClass
,
373 [in, defaultvalue("")] BSTR strResultClass
,
374 [in, defaultvalue("")] BSTR strResultRole
,
375 [in, defaultvalue("")] BSTR strRole
,
376 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
377 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
378 [in, defaultvalue("")] BSTR strRequiredAssocQualifier
,
379 [in, defaultvalue("")] BSTR strRequiredQualifier
,
380 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
381 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
382 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
385 HRESULT AssociatorsAsync_
(
386 [in] IDispatch
*objWbemSink
,
387 [in, defaultvalue("")] BSTR strAssocClass
,
388 [in, defaultvalue("")] BSTR strResultClass
,
389 [in, defaultvalue("")] BSTR strResultRole
,
390 [in, defaultvalue("")] BSTR strRole
,
391 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
392 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
393 [in, defaultvalue("")] BSTR strRequiredAssocQualifier
,
394 [in, defaultvalue("")] BSTR strRequiredQualifier
,
395 [in, defaultvalue(0)] long iFlags
,
396 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
397 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
401 [in, defaultvalue("")] BSTR strResultClass
,
402 [in, defaultvalue("")] BSTR strRole
,
403 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
404 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
405 [in, defaultvalue("")] BSTR strRequiredQualifier
,
406 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
407 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
408 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
411 HRESULT ReferencesAsync_
(
412 [in] IDispatch
*objWbemSink
,
413 [in, defaultvalue("")] BSTR strResultClass
,
414 [in, defaultvalue("")] BSTR strRole
,
415 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
416 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
417 [in, defaultvalue("")] BSTR strRequiredQualifier
,
418 [in, defaultvalue(0)] long iFlags
,
419 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
420 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
424 [in] BSTR strMethodName
,
425 [in, defaultvalue(0)] IDispatch
*objWbemInParameters
,
426 [in, defaultvalue(0)] long iFlags
,
427 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
428 [out, retval] ISWbemObject
**objWbemOutParameters
);
431 HRESULT ExecMethodAsync_
(
432 [in] IDispatch
*objWbemSink
,
433 [in] BSTR strMethodName
,
434 [in, defaultvalue(0)] IDispatch
*objWbemInParameters
,
435 [in, defaultvalue(0)] long iFlags
,
436 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
437 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
441 [out, retval] ISWbemObject
**objWbemObject
);
444 HRESULT GetObjectText_
(
445 [in, defaultvalue(0)] long iFlags
,
446 [out, retval] BSTR *strObjectText
);
449 HRESULT SpawnDerivedClass_
(
450 [in, defaultvalue(0)] long iFlags
,
451 [out, retval] ISWbemObject
**objWbemObject
);
454 HRESULT SpawnInstance_
(
455 [in, defaultvalue(0)] long iFlags
,
456 [out, retval] ISWbemObject
**objWbemObject
);
460 [in] IDispatch
*objWbemObject
,
461 [in, defaultvalue(wbemComparisonFlagIncludeAll
)] long iFlags
,
462 [out, retval] VARIANT_BOOL *bResult
);
466 [out, retval] ISWbemQualifierSet
**objWbemQualifierSet
);
470 [out, retval] ISWbemPropertySet
**objWbemPropertySet
);
474 [out, retval] ISWbemMethodSet
**objWbemMethodSet
);
478 [out, retval] VARIANT *strClassNameArray
);
482 [out, retval] ISWbemObjectPath
**objWbemObjectPath
);
486 [out, retval] ISWbemSecurity
**objWbemSecurity
);
492 uuid(5791bc27
-ce9c
-11d1
-97bf
-0000f81e849c
),
496 pointer_default(unique)
498 interface ISWbemObjectPath
: IDispatch
500 [ id(DISPID_VALUE
), propget ]
502 [out, retval] BSTR *strPath
);
504 [ id(DISPID_VALUE
), propput ]
510 [out, retval] BSTR *strRelPath
);
514 [in] BSTR strRelPath
);
518 [out, retval] BSTR *strServer
);
522 [in] BSTR strServer
);
526 [out, retval] BSTR *strNamespace
);
530 [in] BSTR strNamespace
);
533 HRESULT ParentNamespace
(
534 [out, retval] BSTR *strParentNamespace
);
538 [out, retval] BSTR *strDisplayName
);
542 [in] BSTR strDisplayName
);
546 [out, retval] BSTR *strClass
);
554 [out, retval] VARIANT_BOOL *bIsClass
);
557 HRESULT SetAsClass
();
561 [out, retval] VARIANT_BOOL *bIsSingleton
);
564 HRESULT SetAsSingleton
();
568 [out, retval] ISWbemNamedValueSet
**objWbemNamedValueSet
);
572 [out, retval] ISWbemSecurity
**objWbemSecurity
);
576 [out, retval] BSTR *strLocale
);
580 [in] BSTR strLocale
);
584 [out, retval] BSTR *strAuthority
);
588 [in] BSTR strAuthority
);
594 uuid(76a6415f
-cb41
-11d1
-8b02
-00600806d9b6
),
600 interface ISWbemObjectSet
: IDispatch
602 [ id(DISPID_NEWENUM
), propget, restricted ]
604 [out, retval] IUnknown
**pUnk
);
608 [in] BSTR strObjectPath
,
609 [in, defaultvalue(0)] long iFlags
,
610 [out, retval] ISWbemObject
**objWbemObject
);
614 [out, retval] long *iCount
);
618 [out, retval] ISWbemSecurity
**objWbemSecurity
);
623 [out, retval] ISWbemObject
**objWbemObject
);
629 uuid(176d2f70
-5af3
-11d2
-8b4a
-00600806d9b6
)
631 enum WbemPrivilegeEnum
633 wbemPrivilegeCreateToken
= 1,
634 wbemPrivilegePrimaryToken
= 2,
635 wbemPrivilegeLockMemory
= 3,
636 wbemPrivilegeIncreaseQuota
= 4,
637 wbemPrivilegeMachineAccount
= 5,
638 wbemPrivilegeTcb
= 6,
639 wbemPrivilegeSecurity
= 7,
640 wbemPrivilegeTakeOwnership
= 8,
641 wbemPrivilegeLoadDriver
= 9,
642 wbemPrivilegeSystemProfile
= 10,
643 wbemPrivilegeSystemtime
= 11,
644 wbemPrivilegeProfileSingleProcess
= 12,
645 wbemPrivilegeIncreaseBasePriority
= 13,
646 wbemPrivilegeCreatePagefile
= 14,
647 wbemPrivilegeCreatePermanent
= 15,
648 wbemPrivilegeBackup
= 16,
649 wbemPrivilegeRestore
= 17,
650 wbemPrivilegeShutdown
= 18,
651 wbemPrivilegeDebug
= 19,
652 wbemPrivilegeAudit
= 20,
653 wbemPrivilegeSystemEnvironment
= 21,
654 wbemPrivilegeChangeNotify
= 22,
655 wbemPrivilegeRemoteShutdown
= 23,
656 wbemPrivilegeUndock
= 24,
657 wbemPrivilegeSyncAgent
= 25,
658 wbemPrivilegeEnableDelegation
= 26,
659 wbemPrivilegeManageVolume
= 27
665 uuid(26ee67bd
-5804-11d2
-8b4a
-00600806d9b6
),
671 interface ISWbemPrivilege
: IDispatch
673 [ id(DISPID_VALUE
), propget ]
675 [out, retval] VARIANT_BOOL *bIsEnabled
);
677 [ id(DISPID_VALUE
), propput ]
679 [in] VARIANT_BOOL bIsEnabled
);
683 [out, retval] BSTR *strDisplayName
);
687 [out, retval] BSTR *strDisplayName
);
691 [out, retval] WbemPrivilegeEnum
*iPrivilege
);
697 uuid(26ee67bf
-5804-11d2
-8b4a
-00600806d9b6
),
703 interface ISWbemPrivilegeSet
: IDispatch
705 [ id(DISPID_NEWENUM
), propget, restricted ]
707 [out, retval] IUnknown
**pUnk
);
711 [in] WbemPrivilegeEnum iPrivilege
,
712 [out, retval] ISWbemPrivilege
**objWbemPrivilege
);
716 [out, retval] long *iCount
);
720 [in] WbemPrivilegeEnum iPrivilege
,
721 [in, defaultvalue(TRUE
)] VARIANT_BOOL bIsEnabled
,
722 [out, retval] ISWbemPrivilege
**objWbemPrivilege
);
726 [in] WbemPrivilegeEnum iPrivilege
);
733 [in] BSTR strPrivilege
,
734 [in, defaultvalue(TRUE
)] VARIANT_BOOL bIsEnabled
,
735 [out, retval] ISWbemPrivilege
**objWbemPrivilege
);
741 uuid(4a249b7b
-fc9a
-11d1
-8b1e
-00600806d9b6
),
745 wbemCimtypeSint16
= 2,
746 wbemCimtypeSint32
= 3,
747 wbemCimtypeReal32
= 4,
748 wbemCimtypeReal64
= 5,
749 wbemCimtypeString
= 8,
750 wbemCimtypeBoolean
= 11,
751 wbemCimtypeObject
= 13,
752 wbemCimtypeSint8
= 16,
753 wbemCimtypeUint8
= 17,
754 wbemCimtypeUint16
= 18,
755 wbemCimtypeUint32
= 19,
756 wbemCimtypeSint64
= 20,
757 wbemCimtypeUint64
= 21,
758 wbemCimtypeDatetime
= 101,
759 wbemCimtypeReference
= 102,
760 wbemCimtypeChar16
= 103
766 uuid(4a249b7c
-fc9a
-11d1
-8b1e
-00600806d9b6
),
771 wbemErrFailed
= 0x80041001,
772 wbemErrNotFound
= 0x80041002,
773 wbemErrAccessDenied
= 0x80041003,
774 wbemErrProviderFailure
= 0x80041004,
775 wbemErrTypeMismatch
= 0x80041005,
776 wbemErrOutOfMemory
= 0x80041006,
777 wbemErrInvalidContext
= 0x80041007,
778 wbemErrInvalidParameter
= 0x80041008,
779 wbemErrNotAvailable
= 0x80041009,
780 wbemErrCriticalError
= 0x8004100a,
781 wbemErrInvalidStream
= 0x8004100b,
782 wbemErrNotSupported
= 0x8004100c,
783 wbemErrInvalidSuperclass
= 0x8004100d,
784 wbemErrInvalidNamespace
= 0x8004100e,
785 wbemErrInvalidObject
= 0x8004100f,
786 wbemErrInvalidClass
= 0x80041010,
787 wbemErrProviderNotFound
= 0x80041011,
788 wbemErrInvalidProviderRegistration
= 0x80041012,
789 wbemErrProviderLoadFailure
= 0x80041013,
790 wbemErrInitializationFailure
= 0x80041014,
791 wbemErrTransportFailure
= 0x80041015,
792 wbemErrInvalidOperation
= 0x80041016,
793 wbemErrInvalidQuery
= 0x80041017,
794 wbemErrInvalidQueryType
= 0x80041018,
795 wbemErrAlreadyExists
= 0x80041019,
796 wbemErrOverrideNotAllowed
= 0x8004101a,
797 wbemErrPropagatedQualifier
= 0x8004101b,
798 wbemErrPropagatedProperty
= 0x8004101c,
799 wbemErrUnexpected
= 0x8004101d,
800 wbemErrIllegalOperation
= 0x8004101e,
801 wbemErrCannotBeKey
= 0x8004101f,
802 wbemErrIncompleteClass
= 0x80041020,
803 wbemErrInvalidSyntax
= 0x80041021,
804 wbemErrNondecoratedObject
= 0x80041022,
805 wbemErrReadOnly
= 0x80041023,
806 wbemErrProviderNotCapable
= 0x80041024,
807 wbemErrClassHasChildren
= 0x80041025,
808 wbemErrClassHasInstances
= 0x80041026,
809 wbemErrQueryNotImplemented
= 0x80041027,
810 wbemErrIllegalNull
= 0x80041028,
811 wbemErrInvalidQualifierType
= 0x80041029,
812 wbemErrInvalidPropertyType
= 0x8004102a,
813 wbemErrValueOutOfRange
= 0x8004102b,
814 wbemErrCannotBeSingleton
= 0x8004102c,
815 wbemErrInvalidCimType
= 0x8004102d,
816 wbemErrInvalidMethod
= 0x8004102e,
817 wbemErrInvalidMethodParameters
= 0x8004102f,
818 wbemErrSystemProperty
= 0x80041030,
819 wbemErrInvalidProperty
= 0x80041031,
820 wbemErrCallCancelled
= 0x80041032,
821 wbemErrShuttingDown
= 0x80041033,
822 wbemErrPropagatedMethod
= 0x80041034,
823 wbemErrUnsupportedParameter
= 0x80041035,
824 wbemErrMissingParameter
= 0x80041036,
825 wbemErrInvalidParameterId
= 0x80041037,
826 wbemErrNonConsecutiveParameterIds
= 0x80041038,
827 wbemErrParameterIdOnRetval
= 0x80041039,
828 wbemErrInvalidObjectPath
= 0x8004103a,
829 wbemErrOutOfDiskSpace
= 0x8004103b,
830 wbemErrBufferTooSmall
= 0x8004103c,
831 wbemErrUnsupportedPutExtension
= 0x8004103d,
832 wbemErrUnknownObjectType
= 0x8004103e,
833 wbemErrUnknownPacketType
= 0x8004103f,
834 wbemErrMarshalVersionMismatch
= 0x80041040,
835 wbemErrMarshalInvalidSignature
= 0x80041041,
836 wbemErrInvalidQualifier
= 0x80041042,
837 wbemErrInvalidDuplicateParameter
= 0x80041043,
838 wbemErrTooMuchData
= 0x80041044,
839 wbemErrServerTooBusy
= 0x80041045,
840 wbemErrInvalidFlavor
= 0x80041046,
841 wbemErrCircularReference
= 0x80041047,
842 wbemErrUnsupportedClassUpdate
= 0x80041048,
843 wbemErrCannotChangeKeyInheritance
= 0x80041049,
844 wbemErrCannotChangeIndexInheritance
= 0x80041050,
845 wbemErrTooManyProperties
= 0x80041051,
846 wbemErrUpdateTypeMismatch
= 0x80041052,
847 wbemErrUpdateOverrideNotAllowed
= 0x80041053,
848 wbemErrUpdatePropagatedMethod
= 0x80041054,
849 wbemErrMethodNotImplemented
= 0x80041055,
850 wbemErrMethodDisabled
= 0x80041056,
851 wbemErrRefresherBusy
= 0x80041057,
852 wbemErrUnparsableQuery
= 0x80041058,
853 wbemErrNotEventClass
= 0x80041059,
854 wbemErrMissingGroupWithin
= 0x8004105a,
855 wbemErrMissingAggregationList
= 0x8004105b,
856 wbemErrPropertyNotAnObject
= 0x8004105c,
857 wbemErrAggregatingByObject
= 0x8004105d,
858 wbemErrUninterpretableProviderQuery
= 0x8004105f,
859 wbemErrBackupRestoreWinmgmtRunning
= 0x80041060,
860 wbemErrQueueOverflow
= 0x80041061,
861 wbemErrPrivilegeNotHeld
= 0x80041062,
862 wbemErrInvalidOperator
= 0x80041063,
863 wbemErrLocalCredentials
= 0x80041064,
864 wbemErrCannotBeAbstract
= 0x80041065,
865 wbemErrAmendedObject
= 0x80041066,
866 wbemErrClientTooSlow
= 0x80041067,
867 wbemErrNullSecurityDescriptor
= 0x80041068,
868 wbemErrTimeout
= 0x80041069,
869 wbemErrInvalidAssociation
= 0x8004106a,
870 wbemErrAmbiguousOperation
= 0x8004106b,
871 wbemErrQuotaViolation
= 0x8004106c,
872 wbemErrTransactionConflict
= 0x8004106d,
873 wbemErrForcedRollback
= 0x8004106e,
874 wbemErrUnsupportedLocale
= 0x8004106f,
875 wbemErrHandleOutOfDate
= 0x80041070,
876 wbemErrConnectionFailed
= 0x80041071,
877 wbemErrInvalidHandleRequest
= 0x80041072,
878 wbemErrPropertyNameTooWide
= 0x80041073,
879 wbemErrClassNameTooWide
= 0x80041074,
880 wbemErrMethodNameTooWide
= 0x80041075,
881 wbemErrQualifierNameTooWide
= 0x80041076,
882 wbemErrRerunCommand
= 0x80041077,
883 wbemErrDatabaseVerMismatch
= 0x80041078,
884 wbemErrVetoPut
= 0x80041079,
885 wbemErrVetoDelete
= 0x8004107a,
886 wbemErrInvalidLocale
= 0x80041080,
887 wbemErrProviderSuspended
= 0x80041081,
888 wbemErrSynchronizationRequired
= 0x80041082,
889 wbemErrNoSchema
= 0x80041083,
890 wbemErrProviderAlreadyRegistered
= 0x80041084,
891 wbemErrProviderNotRegistered
= 0x80041085,
892 wbemErrFatalTransportError
= 0x80041086,
893 wbemErrEncryptedConnectionRequired
= 0x80041087,
894 wbemErrRegistrationTooBroad
= 0x80042001,
895 wbemErrRegistrationTooPrecise
= 0x80042002,
896 wbemErrTimedout
= 0x80043001,
897 wbemErrResetToDefault
= 0x80043002
903 uuid(1a388f98
-d4ba
-11d1
-8b09
-00600806d9b6
),
907 pointer_default(unique)
909 interface ISWbemProperty
: IDispatch
911 [ id(DISPID_VALUE
), propget ]
913 [out, retval] VARIANT *varValue
);
915 [ id(DISPID_VALUE
), propput ]
917 [in] VARIANT *varValue
);
921 [out, retval] BSTR *strName
);
925 [out, retval] VARIANT_BOOL *bIsLocal
);
929 [out, retval] BSTR *strOrigin
);
933 [out, retval] WbemCimtypeEnum
*iCimType
);
937 [out, retval] ISWbemQualifierSet
**objWbemQualifierSet
);
941 [out, retval] VARIANT_BOOL *bIsArray
);
947 uuid(dea0a7b2
-d4ba
-11d1
-8b09
-00600806d9b6
),
952 interface ISWbemPropertySet
: IDispatch
954 [ id(DISPID_NEWENUM
), propget, restricted ]
956 [out, retval] IUnknown
**pUnk
);
961 [in, defaultvalue(0)] long iFlags
,
962 [out, retval] ISWbemProperty
**objWbemProperty
);
966 [out, retval] long *iCount
);
971 [in] WbemCimtypeEnum iCIMType
,
972 [in, defaultvalue(FALSE
)] VARIANT_BOOL bIsArray
,
973 [in, defaultvalue(0)] long iFlags
,
974 [out, retval] ISWbemProperty
**objWbemProperty
);
979 [in, defaultvalue(0)] long iFlags
);
985 uuid(79b05932
-d3b7
-11d1
-8b06
-00600806d9b6
),
990 pointer_default(unique)
992 interface ISWbemQualifier
: IDispatch
994 [ id(DISPID_VALUE
), propget ]
996 [out, retval] VARIANT *varValue
);
998 [ id(DISPID_VALUE
), propput ]
1000 [in] VARIANT *varValue
);
1004 [out, retval] BSTR *strName
);
1008 [out, retval] VARIANT_BOOL *bIsLocal
);
1011 HRESULT PropagatesToSubclass
(
1012 [out, retval] VARIANT_BOOL *bPropagatesToSubclass
);
1015 HRESULT PropagatesToSubclass
(
1016 [in] VARIANT_BOOL bPropagatesToSubclass
);
1019 HRESULT PropagatesToInstance
(
1020 [out, retval] VARIANT_BOOL *bPropagatesToInstance
);
1023 HRESULT PropagatesToInstance
(
1024 [in] VARIANT_BOOL bPropagatesToInstance
);
1027 HRESULT IsOverridable
(
1028 [out, retval] VARIANT_BOOL *bIsOverridable
);
1031 HRESULT IsOverridable
(
1032 [in] VARIANT_BOOL bIsOverridable
);
1036 [out, retval] VARIANT_BOOL *bIsAmended
);
1042 uuid(9b16ed16
-d3df
-11d1
-8b08
-00600806d9b6
),
1048 interface ISWbemQualifierSet
: IDispatch
1050 [ id(DISPID_NEWENUM
), propget, restricted ]
1052 [out, retval] IUnknown
**pUnk
);
1054 [ id(DISPID_VALUE
) ]
1057 [in, defaultvalue(0)] long iFlags
,
1058 [out, retval] ISWbemQualifier
**objWbemQualifier
);
1062 [out, retval] long *iCount
);
1067 [in] VARIANT *varVal
,
1068 [in, defaultvalue(TRUE
)] VARIANT_BOOL bPropagatesToSubclass
,
1069 [in, defaultvalue(TRUE
)] VARIANT_BOOL bPropagatesToInstance
,
1070 [in, defaultvalue(TRUE
)] VARIANT_BOOL bIsOverridable
,
1071 [in, defaultvalue(0)] long iFlags
,
1072 [out, retval] ISWbemQualifier
**objWbemQualifier
);
1077 [in, defaultvalue(0)] long iFlags
);
1083 uuid(b54d66e8
-2287-11d2
-8b33
-00600806d9b6
)
1085 enum WbemImpersonationLevelEnum
1087 wbemImpersonationLevelAnonymous
= 1,
1088 wbemImpersonationLevelIdentify
= 2,
1089 wbemImpersonationLevelImpersonate
= 3,
1090 wbemImpersonationLevelDelegate
= 4
1091 } WbemImpersonationLevelEnum
;
1096 uuid(b54d66e7
-2287-11d2
-8b33
-00600806d9b6
)
1098 enum WbemAuthenticationLevelEnum
1100 wbemAuthenticationLevelDefault
= 0,
1101 wbemAuthenticationLevelNone
= 1,
1102 wbemAuthenticationLevelConnect
= 2,
1103 wbemAuthenticationLevelCall
= 3,
1104 wbemAuthenticationLevelPkt
= 4,
1105 wbemAuthenticationLevelPktIntegrity
= 5,
1106 wbemAuthenticationLevelPktPrivacy
= 6
1107 } WbemAuthenticationLevelEnum
;
1112 uuid(b54d66e6
-2287-11d2
-8b33
-00600806d9b6
),
1118 interface ISWbemSecurity
: IDispatch
1121 HRESULT ImpersonationLevel
(
1122 [out, retval] WbemImpersonationLevelEnum
*iImpersonationLevel
);
1125 HRESULT ImpersonationLevel
(
1126 [in] WbemImpersonationLevelEnum iImpersonationLevel
);
1129 HRESULT AuthenticationLevel
(
1130 [out, retval] WbemAuthenticationLevelEnum
*iAuthenticationLevel
);
1133 HRESULT AuthenticationLevel
(
1134 [in] WbemAuthenticationLevelEnum iAuthenticationLevel
);
1138 [out, retval] ISWbemPrivilegeSet
**objWbemPrivilegeSet
);
1144 uuid(76a6415c
-cb41
-11d1
-8b02
-00600806d9b6
),
1148 pointer_default(unique)
1150 interface ISWbemServices
: IDispatch
1154 [in, defaultvalue("")] BSTR strObjectPath
,
1155 [in, defaultvalue(0)] long iFlags
,
1156 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1157 [out, retval] ISWbemObject
**objWbemObject
);
1161 [in] IDispatch
*objWbemSink
,
1162 [in, defaultvalue("")] BSTR strObjectPath
,
1163 [in, defaultvalue(0)] long iFlags
,
1164 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1165 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1169 [in] BSTR strObjectPath
,
1170 [in, defaultvalue(0)] long iFlags
,
1171 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
);
1174 HRESULT DeleteAsync
(
1175 [in] IDispatch
*objWbemSink
,
1176 [in] BSTR strObjectPath
,
1177 [in, defaultvalue(0)] long iFlags
,
1178 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1179 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1182 HRESULT InstancesOf
(
1184 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
1185 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1186 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
1189 HRESULT InstancesOfAsync
(
1190 [in] IDispatch
*objWbemSink
,
1192 [in, defaultvalue(0)] long iFlags
,
1193 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1194 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1197 HRESULT SubclassesOf
(
1198 [in, defaultvalue("")] BSTR strSuperclass
,
1199 [in, defaultvalue(wbemFlagReturnImmediately|wbemQueryFlagDeep
)] long iFlags
,
1200 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1201 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
1204 HRESULT SubclassesOfAsync
(
1205 [in] IDispatch
*objWbemSink
,
1206 [in, defaultvalue("")] BSTR strSuperclass
,
1207 [in, defaultvalue(wbemQueryFlagDeep
)] long iFlags
,
1208 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1209 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1214 [in, defaultvalue("WQL")] BSTR strQueryLanguage
,
1215 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
1216 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1217 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
1220 HRESULT ExecQueryAsync
(
1221 [in] IDispatch
*objWbemSink
,
1223 [in, defaultvalue("WQL")] BSTR strQueryLanguage
,
1224 [in, defaultvalue(0)] long lFlags
,
1225 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1226 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1229 HRESULT AssociatorsOf
(
1230 [in] BSTR strObjectPath
,
1231 [in, defaultvalue("")] BSTR strAssocClass
,
1232 [in, defaultvalue("")] BSTR strResultClass
,
1233 [in, defaultvalue("")] BSTR strResultRole
,
1234 [in, defaultvalue("")] BSTR strRole
,
1235 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
1236 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
1237 [in, defaultvalue("")] BSTR strRequiredAssocQualifier
,
1238 [in, defaultvalue("")] BSTR strRequiredQualifier
,
1239 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
1240 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1241 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
1244 HRESULT AssociatorsOfAsync
(
1245 [in] IDispatch
*objWbemSink
,
1246 [in] BSTR strObjectPath
,
1247 [in, defaultvalue("")] BSTR strAssocClass
,
1248 [in, defaultvalue("")] BSTR strResultClass
,
1249 [in, defaultvalue("")] BSTR strResultRole
,
1250 [in, defaultvalue("")] BSTR strRole
,
1251 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
1252 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
1253 [in, defaultvalue("")] BSTR strRequiredAssocQualifier
,
1254 [in, defaultvalue("")] BSTR strRequiredQualifier
,
1255 [in, defaultvalue(0)] long iFlags
,
1256 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1257 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1260 HRESULT ReferencesTo
(
1261 [in] BSTR strObjectPath
,
1262 [in, defaultvalue("")] BSTR strResultClass
,
1263 [in, defaultvalue("")] BSTR strRole
,
1264 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
1265 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
1266 [in, defaultvalue("")] BSTR strRequiredQualifier
,
1267 [in, defaultvalue(wbemFlagReturnImmediately
)] long iFlags
,
1268 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1269 [out, retval] ISWbemObjectSet
**objWbemObjectSet
);
1272 HRESULT ReferencesToAsync
(
1273 [in] IDispatch
*objWbemSink
,
1274 [in] BSTR strObjectPath
,
1275 [in, defaultvalue("")] BSTR strResultClass
,
1276 [in, defaultvalue("")] BSTR strRole
,
1277 [in, defaultvalue(FALSE
)] VARIANT_BOOL bClassesOnly
,
1278 [in, defaultvalue(FALSE
)] VARIANT_BOOL bSchemaOnly
,
1279 [in, defaultvalue("")] BSTR strRequiredQualifier
,
1280 [in, defaultvalue(0)] long iFlags
,
1281 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1282 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1285 HRESULT ExecNotificationQuery
(
1287 [in, defaultvalue("WQL")] BSTR strQueryLanguage
,
1288 [in, defaultvalue(wbemFlagReturnImmediately|wbemFlagForwardOnly
)] long iFlags
,
1289 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1290 [out, retval] ISWbemEventSource
**objWbemEventSource
);
1293 HRESULT ExecNotificationQueryAsync
(
1294 [in] IDispatch
*objWbemSink
,
1296 [in, defaultvalue("WQL")] BSTR strQueryLanguage
,
1297 [in, defaultvalue(0)] long iFlags
,
1298 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1299 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1303 [in] BSTR strObjectPath
,
1304 [in] BSTR strMethodName
,
1305 [in, defaultvalue(0)] IDispatch
*objWbemInParameters
,
1306 [in, defaultvalue(0)] long iFlags
,
1307 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1308 [out, retval] ISWbemObject
**objWbemOutParameters
);
1311 HRESULT ExecMethodAsync
(
1312 [in] IDispatch
*objWbemSink
,
1313 [in] BSTR strObjectPath
,
1314 [in] BSTR strMethodName
,
1315 [in, defaultvalue(0)] IDispatch
*objWbemInParameters
,
1316 [in, defaultvalue(0)] long iFlags
,
1317 [in, defaultvalue(0)] IDispatch
*objWbemNamedValueSet
,
1318 [in, defaultvalue(0)] IDispatch
*objWbemAsyncContext
);
1322 [out, retval] ISWbemSecurity
**objWbemSecurity
);
1326 threading
(apartment
),
1327 uuid(76a64158
-cb41
-11d1
-8b02
-00600806d9b6
),
1328 progid
("WbemScripting.SWbemLocator.1"),
1329 vi_progid
("WbemScripting.SWbemLocator")
1331 coclass SWbemLocator
1333 interface ISWbemLocator
;
1337 threading
(apartment
),
1338 uuid(9aed384e
-ce8b
-11d1
-8b05
-00600806d9b6
),
1339 progid
("WbemScripting.SWbemNamedValueSet.1"),
1340 vi_progid
("WbemScripting.SWbemNamedValueSet")
1342 coclass SWbemNamedValueSet
1344 interface ISWbemNamedValueSet
;
1347 } /* WbemScripting */