kernel32/tests: Fix a race condition in test_QueryInformationJobObject().
[wine.git] / include / wbemcli.idl
blob5b5ca61bec14b08c8ed87d3c9c58ba61d1f849f9
1 /*
2 * Copyright 2009 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
19 cpp_quote("DEFINE_GUID(CLSID_WbemLocator, 0x4590f811,0x1d3a,0x11d0,0x89,0x1f,0x00,0xaa,0x00,0x4b,0x2e,0x24);")
20 cpp_quote("DEFINE_GUID(CLSID_WbemStatusCode, 0xeb87e1bd,0x3233,0x11d2,0xae,0xc9,0x00,0xc0,0x4f,0xb6,0x88,0x20);")
22 import "oaidl.idl";
23 import "objidl.idl";
25 interface IWbemContext;
26 interface IWbemServices;
27 interface IWbemStatusCodeText;
28 interface IWbemCallResult;
29 interface IWbemObjectSink;
30 interface IWbemClassObject;
31 interface IEnumWbemClassObject;
32 interface IWbemQualifierSet;
34 typedef [v1_enum] enum tag_WBEMSTATUS
36 WBEM_NO_ERROR = 0,
37 WBEM_S_NO_ERROR = 0,
38 WBEM_S_SAME = 0,
39 WBEM_S_FALSE = 1,
40 WBEM_S_ALREADY_EXISTS = 0x40001,
41 WBEM_S_RESET_TO_DEFAULT = 0x40002,
42 WBEM_S_DIFFERENT = 0x40003,
43 WBEM_S_TIMEDOUT = 0x40004,
44 WBEM_S_NO_MORE_DATA = 0x40005,
45 WBEM_S_OPERATION_CANCELLED = 0x40006,
46 WBEM_S_PENDING = 0x40007,
47 WBEM_S_DUPLICATE_OBJECTS = 0x40008,
48 WBEM_S_ACCESS_DENIED = 0x40009,
49 WBEM_S_PARTIAL_RESULTS = 0x40010,
50 WBEM_S_SOURCE_NOT_AVAILABLE = 0x40017,
51 WBEM_E_FAILED = 0x80041001,
52 WBEM_E_NOT_FOUND = 0x80041002,
53 WBEM_E_ACCESS_DENIED = 0x80041003,
54 WBEM_E_PROVIDER_FAILURE = 0x80041004,
55 WBEM_E_TYPE_MISMATCH = 0x80041005,
56 WBEM_E_OUT_OF_MEMORY = 0x80041006,
57 WBEM_E_INVALID_CONTEXT = 0x80041007,
58 WBEM_E_INVALID_PARAMETER = 0x80041008,
59 WBEM_E_NOT_AVAILABLE = 0x80041009,
60 WBEM_E_CRITICAL_ERROR = 0x8004100a,
61 WBEM_E_INVALID_STREAM = 0x8004100b,
62 WBEM_E_NOT_SUPPORTED = 0x8004100c,
63 WBEM_E_INVALID_SUPERCLASS = 0x8004100d,
64 WBEM_E_INVALID_NAMESPACE = 0x8004100e,
65 WBEM_E_INVALID_OBJECT = 0x8004100f,
66 WBEM_E_INVALID_CLASS = 0x80041010,
67 WBEM_E_PROVIDER_NOT_FOUND = 0x80041011,
68 WBEM_E_INVALID_PROVIDER_REGISTRATION = 0x80041012,
69 WBEM_E_PROVIDER_LOAD_FAILURE = 0x80041013,
70 WBEM_E_INITIALIZATION_FAILURE = 0x80041014,
71 WBEM_E_TRANSPORT_FAILURE = 0x80041015,
72 WBEM_E_INVALID_OPERATION = 0x80041016,
73 WBEM_E_INVALID_QUERY = 0x80041017,
74 WBEM_E_INVALID_QUERY_TYPE = 0x80041018,
75 WBEM_E_ALREADY_EXISTS = 0x80041019,
76 WBEM_E_OVERRIDE_NOT_ALLOWED = 0x8004101a,
77 WBEM_E_PROPAGATED_QUALIFIER = 0x8004101b,
78 WBEM_E_PROPAGATED_PROPERTY = 0x8004101c,
79 WBEM_E_UNEXPECTED = 0x8004101d,
80 WBEM_E_ILLEGAL_OPERATION = 0x8004101e,
81 WBEM_E_CANNOT_BE_KEY = 0x8004101f,
82 WBEM_E_INCOMPLETE_CLASS = 0x80041020,
83 WBEM_E_INVALID_SYNTAX = 0x80041021,
84 WBEM_E_NONDECORATED_OBJECT = 0x80041022,
85 WBEM_E_READ_ONLY = 0x80041023,
86 WBEM_E_PROVIDER_NOT_CAPABLE = 0x80041024,
87 WBEM_E_CLASS_HAS_CHILDREN = 0x80041025,
88 WBEM_E_CLASS_HAS_INSTANCES = 0x80041026,
89 WBEM_E_QUERY_NOT_IMPLEMENTED = 0x80041027,
90 WBEM_E_ILLEGAL_NULL = 0x80041028,
91 WBEM_E_INVALID_QUALIFIER_TYPE = 0x80041029,
92 WBEM_E_INVALID_PROPERTY_TYPE = 0x8004102a,
93 WBEM_E_VALUE_OUT_OF_RANGE = 0x8004102b,
94 WBEM_E_CANNOT_BE_SINGLETON = 0x8004102c,
95 WBEM_E_INVALID_CIM_TYPE = 0x8004102d,
96 WBEM_E_INVALID_METHOD = 0x8004102e,
97 WBEM_E_INVALID_METHOD_PARAMETERS = 0x8004102f,
98 WBEM_E_SYSTEM_PROPERTY = 0x80041030,
99 WBEM_E_INVALID_PROPERTY = 0x80041031,
100 WBEM_E_CALL_CANCELLED = 0x80041032,
101 WBEM_E_SHUTTING_DOWN = 0x80041033,
102 WBEM_E_PROPAGATED_METHOD = 0x80041034,
103 WBEM_E_UNSUPPORTED_PARAMETER = 0x80041035,
104 WBEM_E_MISSING_PARAMETER_ID = 0x80041036,
105 WBEM_E_INVALID_PARAMETER_ID = 0x80041037,
106 WBEM_E_NONCONSECUTIVE_PARAMETER_IDS = 0x80041038,
107 WBEM_E_PARAMETER_ID_ON_RETVAL = 0x80041039,
108 WBEM_E_INVALID_OBJECT_PATH = 0x8004103a,
109 WBEM_E_OUT_OF_DISK_SPACE = 0x8004103b,
110 WBEM_E_BUFFER_TOO_SMALL = 0x8004103c,
111 WBEM_E_UNSUPPORTED_PUT_EXTENSION = 0x8004103d,
112 WBEM_E_UNKNOWN_OBJECT_TYPE = 0x8004103e,
113 WBEM_E_UNKNOWN_PACKET_TYPE = 0x8004103f,
114 WBEM_E_MARSHAL_VERSION_MISMATCH = 0x80041040,
115 WBEM_E_MARSHAL_INVALID_SIGNATURE = 0x80041041,
116 WBEM_E_INVALID_QUALIFIER = 0x80041042,
117 WBEM_E_INVALID_DUPLICATE_PARAMETER = 0x80041043,
118 WBEM_E_TOO_MUCH_DATA = 0x80041044,
119 WBEM_E_SERVER_TOO_BUSY = 0x80041045,
120 WBEM_E_INVALID_FLAVOR = 0x80041046,
121 WBEM_E_CIRCULAR_REFERENCE = 0x80041047,
122 WBEM_E_UNSUPPORTED_CLASS_UPDATE = 0x80041048,
123 WBEM_E_CANNOT_CHANGE_KEY_INHERITANCE = 0x80041049,
124 WBEM_E_CANNOT_CHANGE_INDEX_INHERITANCE = 0x80041050,
125 WBEM_E_TOO_MANY_PROPERTIES = 0x80041051,
126 WBEM_E_UPDATE_TYPE_MISMATCH = 0x80041052,
127 WBEM_E_UPDATE_OVERRIDE_NOT_ALLOWED = 0x80041053,
128 WBEM_E_UPDATE_PROPAGATED_METHOD = 0x80041054,
129 WBEM_E_METHOD_NOT_IMPLEMENTED = 0x80041055,
130 WBEM_E_METHOD_DISABLED = 0x80041056,
131 WBEM_E_REFRESHER_BUSY = 0x80041057,
132 WBEM_E_UNPARSABLE_QUERY = 0x80041058,
133 WBEM_E_NOT_EVENT_CLASS = 0x80041059,
134 WBEM_E_MISSING_GROUP_WITHIN = 0x8004105a,
135 WBEM_E_MISSING_AGGREGATION_LIST = 0x8004105b,
136 WBEM_E_PROPERTY_NOT_AN_OBJECT = 0x8004105c,
137 WBEM_E_AGGREGATING_BY_OBJECT = 0x8004105d,
138 WBEM_E_UNINTERPRETABLE_PROVIDER_QUERY = 0x8004105f,
139 WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING = 0x80041060,
140 WBEM_E_QUEUE_OVERFLOW = 0x80041061,
141 WBEM_E_PRIVILEGE_NOT_HELD = 0x80041062,
142 WBEM_E_INVALID_OPERATOR = 0x80041063,
143 WBEM_E_LOCAL_CREDENTIALS = 0x80041064,
144 WBEM_E_CANNOT_BE_ABSTRACT = 0x80041065,
145 WBEM_E_AMENDED_OBJECT = 0x80041066,
146 WBEM_E_CLIENT_TOO_SLOW = 0x80041067,
147 WBEM_E_NULL_SECURITY_DESCRIPTOR = 0x80041068,
148 WBEM_E_TIMED_OUT = 0x80041069,
149 WBEM_E_INVALID_ASSOCIATION = 0x8004106a,
150 WBEM_E_AMBIGUOUS_OPERATION = 0x8004106b,
151 WBEM_E_QUOTA_VIOLATION = 0x8004106c,
152 WBEM_E_RESERVED_001 = 0x8004106d,
153 WBEM_E_RESERVED_002 = 0x8004106e,
154 WBEM_E_UNSUPPORTED_LOCALE = 0x8004106f,
155 WBEM_E_HANDLE_OUT_OF_DATE = 0x80041070,
156 WBEM_E_CONNECTION_FAILED = 0x80041071,
157 WBEM_E_INVALID_HANDLE_REQUEST = 0x80041072,
158 WBEM_E_PROPERTY_NAME_TOO_WIDE = 0x80041073,
159 WBEM_E_CLASS_NAME_TOO_WIDE = 0x80041074,
160 WBEM_E_METHOD_NAME_TOO_WIDE = 0x80041075,
161 WBEM_E_QUALIFIER_NAME_TOO_WIDE = 0x80041076,
162 WBEM_E_RERUN_COMMAND = 0x80041077,
163 WBEM_E_DATABASE_VER_MISMATCH = 0x80041078,
164 WBEM_E_VETO_DELETE = 0x80041079,
165 WBEM_E_VETO_PUT = 0x8004107a,
166 WBEM_E_INVALID_LOCALE = 0x80041080,
167 WBEM_E_PROVIDER_SUSPENDED = 0x80041081,
168 WBEM_E_SYNCHRONIZATION_REQUIRED = 0x80041082,
169 WBEM_E_NO_SCHEMA = 0x80041083,
170 WBEM_E_PROVIDER_ALREADY_REGISTERED = 0x80041084,
171 WBEM_E_PROVIDER_NOT_REGISTERED = 0x80041085,
172 WBEM_E_FATAL_TRANSPORT_ERROR = 0x80041086,
173 WBEM_E_ENCRYPTED_CONNECTION_REQUIRED = 0x80041087,
174 WBEM_E_PROVIDER_TIMED_OUT = 0x80041088,
175 WBEM_E_NO_KEY = 0x80041089,
176 WBEM_E_PROVIDER_DISABLED = 0x8004108a
177 } WBEMSTATUS;
179 typedef [v1_enum] enum tag_WBEM_STATUS_TYPE
181 WBEM_STATUS_COMPLETE = 0,
182 WBEM_STATUS_REQUIREMENTS = 1,
183 WBEM_STATUS_PROGRESS = 2
184 } WBEM_STATUS_TYPE;
186 typedef [v1_enum] enum tag_WBEM_TIMEOUT_TYPE
188 WBEM_NO_WAIT = 0,
189 WBEM_INFINITE = 0xffffffff
190 } WBEM_TIMEOUT_TYPE;
192 typedef [v1_enum] enum tag_WBEM_CONDITION_FLAG_TYPE
194 WBEM_FLAG_ALWAYS = 0,
195 WBEM_FLAG_ONLY_IF_TRUE = 0x1,
196 WBEM_FLAG_ONLY_IF_FALSE = 0x2,
197 WBEM_FLAG_ONLY_IF_IDENTICAL = 0x3,
198 WBEM_MASK_PRIMARY_CONDITION = 0x3,
199 WBEM_FLAG_KEYS_ONLY = 0x4,
200 WBEM_FLAG_REFS_ONLY = 0x8,
201 WBEM_FLAG_LOCAL_ONLY = 0x10,
202 WBEM_FLAG_PROPAGATED_ONLY = 0x20,
203 WBEM_FLAG_SYSTEM_ONLY = 0x30,
204 WBEM_FLAG_NONSYSTEM_ONLY = 0x40,
205 WBEM_MASK_CONDITION_ORIGIN = 0x70,
206 WBEM_FLAG_CLASS_OVERRIDES_ONLY = 0x100,
207 WBEM_FLAG_CLASS_LOCAL_AND_OVERRIDES = 0x200,
208 WBEM_MASK_CLASS_CONDITION = 0x300
209 } WBEM_CONDITION_FLAG_TYPE;
211 typedef [v1_enum] enum tag_WBEM_FLAVOR_TYPE
213 WBEM_FLAVOR_DONT_PROPAGATE = 0,
214 WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE = 0x1,
215 WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS = 0x2,
216 WBEM_FLAVOR_MASK_PROPAGATION = 0xf,
217 WBEM_FLAVOR_OVERRIDABLE = 0,
218 WBEM_FLAVOR_NOT_OVERRIDABLE = 0x10,
219 WBEM_FLAVOR_MASK_PERMISSIONS = 0x10,
220 WBEM_FLAVOR_ORIGIN_LOCAL = 0,
221 WBEM_FLAVOR_ORIGIN_PROPAGATED = 0x20,
222 WBEM_FLAVOR_ORIGIN_SYSTEM = 0x40,
223 WBEM_FLAVOR_MASK_ORIGIN = 0x60,
224 WBEM_FLAVOR_NOT_AMENDED = 0,
225 WBEM_FLAVOR_AMENDED = 0x80,
226 WBEM_FLAVOR_MASK_AMENDED = 0x80
227 } WBEM_FLAVOR_TYPE;
229 typedef [v1_enum] enum tag_WBEM_GENUS_TYPE
231 WBEM_GENUS_CLASS = 1,
232 WBEM_GENUS_INSTANCE = 2
233 } WBEM_GENUS_TYPE;
235 typedef [v1_enum] enum tag_CIMTYPE_ENUMERATION
237 CIM_ILLEGAL = 0xfff,
238 CIM_EMPTY = 0,
239 CIM_SINT16 = 2,
240 CIM_SINT32 = 3,
241 CIM_REAL32 = 4,
242 CIM_REAL64 = 5,
243 CIM_STRING = 8,
244 CIM_BOOLEAN = 11,
245 CIM_OBJECT = 13,
246 CIM_SINT8 = 16,
247 CIM_UINT8 = 17,
248 CIM_UINT16 = 18,
249 CIM_UINT32 = 19,
250 CIM_SINT64 = 20,
251 CIM_UINT64 = 21,
252 CIM_DATETIME = 101,
253 CIM_REFERENCE = 102,
254 CIM_CHAR16 = 103,
255 CIM_FLAG_ARRAY = 0x2000
256 } CIMTYPE_ENUMERATION;
258 typedef long CIMTYPE;
261 object,
262 restricted,
263 local,
264 uuid(dc12a687-737f-11cf-884d-00aa004b2e24),
265 pointer_default(unique)
267 interface IWbemLocator : IUnknown
269 HRESULT ConnectServer(
270 [in] const BSTR strNetworkResource,
271 [in] const BSTR strUser,
272 [in] const BSTR strPassword,
273 [in] const BSTR strLocale,
274 [in] LONG lSecurityFlags,
275 [in] const BSTR strAuthority,
276 [in] IWbemContext *pCtx,
277 [out] IWbemServices **ppNamespace);
281 object,
282 local,
283 uuid(eb87e1bc-3233-11d2-aec9-00c04fb68820)
285 interface IWbemStatusCodeText : IUnknown
287 HRESULT GetErrorCodeText(
288 [in] HRESULT hRes,
289 [in] LCID LocaleId,
290 [in] LONG lFlags,
291 [out] BSTR *MessageText);
293 HRESULT GetFacilityCodeText(
294 [in] HRESULT hRes,
295 [in] LCID LocaleId,
296 [in] LONG lFlags,
297 [out] BSTR *MessageText);
301 object,
302 restricted,
303 uuid(7c857801-7381-11cf-884d-00aa004b2e24)
305 interface IWbemObjectSink : IUnknown
307 HRESULT Indicate(
308 [in] long lObjectCount,
309 [in, size_is(lObjectCount)] IWbemClassObject **apObjArray);
311 HRESULT SetStatus(
312 [in] long lFlags,
313 [in] HRESULT hResult,
314 [in] BSTR strParam,
315 [in] IWbemClassObject *pObjParam);
318 typedef [v1_enum] enum tag_WBEM_GENERIC_FLAG_TYPE
320 WBEM_FLAG_RETURN_WBEM_COMPLETE = 0,
321 WBEM_FLAG_BIDIRECTIONAL = 0,
322 WBEM_FLAG_RETURN_ERROR_OBJECT = 0,
323 WBEM_FLAG_DONT_SEND_STATUS = 0,
324 WBEM_FLAG_SEND_ONLY_SELECTED = 0,
325 WBEM_FLAG_RETURN_IMMEDIATELY = 0x10,
326 WBEM_FLAG_FORWARD_ONLY = 0x20,
327 WBEM_FLAG_NO_ERROR_OBJECT = 0x40,
328 WBEM_FLAG_SEND_STATUS = 0x80,
329 WBEM_FLAG_ENSURE_LOCATABLE = 0x100,
330 WBEM_FLAG_DIRECT_READ = 0x200,
331 WBEM_MASK_RESERVED_FLAGS = 0x1f000,
332 WBEM_FLAG_USE_AMENDED_QUALIFIERS = 0x20000,
333 WBEM_FLAG_STRONG_VALIDATION = 0x100000
334 } WBEM_GENERIC_FLAG_TYPE;
337 object,
338 restricted,
339 local,
340 uuid(44aca674-e8fc-11d0-a07c-00c04fb68820)
342 interface IWbemContext : IUnknown
344 HRESULT Clone(
345 [out] IWbemContext **ppNewCopy);
347 HRESULT GetNames(
348 [in] long lFlags,
349 [out] SAFEARRAY(BSTR) *pNames);
351 HRESULT BeginEnumeration(
352 [in] long lFlags);
354 HRESULT Next(
355 [in] long lFlags,
356 [out] BSTR *pstrName,
357 [out] VARIANT *pValue);
359 HRESULT EndEnumeration();
361 HRESULT SetValue(
362 [in, string] LPCWSTR wszName,
363 [in] long lFlags,
364 [in] VARIANT *pValue);
366 HRESULT GetValue(
367 [in, string] LPCWSTR wszName,
368 [in] long lFlags,
369 [out] VARIANT *pValue);
371 HRESULT DeleteValue(
372 [in, string] LPCWSTR wszName,
373 [in] long lFlags);
375 HRESULT DeleteAll();
379 object,
380 restricted,
381 uuid(9556dc99-828c-11cf-a37e-00aa003240c7),
382 pointer_default(unique)
384 interface IWbemServices : IUnknown
386 HRESULT OpenNamespace(
387 [in] const BSTR strNamespace,
388 [in] long lFlags,
389 [in] IWbemContext *pCtx,
390 [out] IWbemServices **ppWorkingNamespace,
391 [out] IWbemCallResult **ppResult);
393 HRESULT CancelAsyncCall(
394 [in] IWbemObjectSink *pSink);
396 HRESULT QueryObjectSink(
397 [in] long lFlags,
398 [out] IWbemObjectSink **ppResponseHandler);
400 HRESULT GetObject(
401 [in] const BSTR strObjectPath,
402 [in] long lFlags,
403 [in] IWbemContext *pCtx,
404 [out] IWbemClassObject **ppObject,
405 [out] IWbemCallResult **ppCallResult);
407 HRESULT GetObjectAsync(
408 [in] const BSTR strObjectPath,
409 [in] long lFlags,
410 [in] IWbemContext *pCtx,
411 [in] IWbemObjectSink *pResponseHandler);
413 HRESULT PutClass(
414 [in] IWbemClassObject *pObject,
415 [in] long lFlags,
416 [in] IWbemContext *pCtx,
417 [out] IWbemCallResult **ppCallResult);
419 HRESULT PutClassAsync(
420 [in] IWbemClassObject *pObject,
421 [in] long lFlags,
422 [in] IWbemContext *pCtx,
423 [in] IWbemObjectSink *pResponseHandler);
425 HRESULT DeleteClass(
426 [in] const BSTR strClass,
427 [in] long lFlags,
428 [in] IWbemContext *pCtx,
429 [out] IWbemCallResult **ppCallResult);
431 HRESULT DeleteClassAsync(
432 [in] const BSTR strClass,
433 [in] long lFlags,
434 [in] IWbemContext *pCtx,
435 [in] IWbemObjectSink *pResponseHandler);
437 HRESULT CreateClassEnum(
438 [in] const BSTR strSuperclass,
439 [in] long lFlags,
440 [in] IWbemContext *pCtx,
441 [out] IEnumWbemClassObject **ppEnum);
443 HRESULT CreateClassEnumAsync(
444 [in] const BSTR strSuperclass,
445 [in] long lFlags,
446 [in] IWbemContext *pCtx,
447 [in] IWbemObjectSink *pResponseHandler);
449 HRESULT PutInstance(
450 [in] IWbemClassObject *pInst,
451 [in] long lFlags,
452 [in] IWbemContext *pCtx,
453 [out] IWbemCallResult **ppCallResult);
455 HRESULT PutInstanceAsync(
456 [in] IWbemClassObject *pInst,
457 [in] long lFlags,
458 [in] IWbemContext *pCtx,
459 [in] IWbemObjectSink *pResponseHandler);
461 HRESULT DeleteInstance(
462 [in] const BSTR strObjectPath,
463 [in] long lFlags,
464 [in] IWbemContext *pCtx,
465 [out] IWbemCallResult **ppCallResult);
467 HRESULT DeleteInstanceAsync(
468 [in] const BSTR strObjectPath,
469 [in] long lFlags,
470 [in] IWbemContext *pCtx,
471 [in] IWbemObjectSink *pResponseHandler);
473 HRESULT CreateInstanceEnum(
474 [in] const BSTR strFilter,
475 [in] long lFlags,
476 [in] IWbemContext *pCtx,
477 [out] IEnumWbemClassObject **ppEnum);
479 HRESULT CreateInstanceEnumAsync(
480 [in] const BSTR strFilter,
481 [in] long lFlags,
482 [in] IWbemContext *pCtx,
483 [in] IWbemObjectSink *pResponseHandler);
485 HRESULT ExecQuery(
486 [in] const BSTR strQueryLanguage,
487 [in] const BSTR strQuery,
488 [in] long lFlags,
489 [in] IWbemContext *pCtx,
490 [out] IEnumWbemClassObject **ppEnum);
492 HRESULT ExecQueryAsync(
493 [in] const BSTR strQueryLanguage,
494 [in] const BSTR strQuery,
495 [in] long lFlags,
496 [in] IWbemContext *pCtx,
497 [in] IWbemObjectSink *pResponseHandler);
499 HRESULT ExecNotificationQuery(
500 [in] const BSTR strQueryLanguage,
501 [in] const BSTR strQuery,
502 [in] long lFlags,
503 [in] IWbemContext *pCtx,
504 [out] IEnumWbemClassObject **ppEnum);
506 HRESULT ExecNotificationQueryAsync(
507 [in] const BSTR strQueryLanguage,
508 [in] const BSTR strQuery,
509 [in] long lFlags,
510 [in] IWbemContext *pCtx,
511 [in] IWbemObjectSink *pResponseHandler);
513 HRESULT ExecMethod(
514 [in] const BSTR strObjectPath,
515 [in] const BSTR strMethodName,
516 [in] long lFlags,
517 [in] IWbemContext *pCtx,
518 [in] IWbemClassObject *pInParams,
519 [out] IWbemClassObject **ppOutParams,
520 [out] IWbemCallResult **ppCallResult);
522 HRESULT ExecMethodAsync(
523 [in] const BSTR strObjectPath,
524 [in] const BSTR strMethodName,
525 [in] long lFlags,
526 [in] IWbemContext *pCtx,
527 [in] IWbemClassObject *pInParams,
528 [in] IWbemObjectSink *pResponseHandler);
532 object,
533 restricted,
534 uuid(44aca675-e8fc-11d0-a07c-00c04fb68820)
536 interface IWbemCallResult : IUnknown
538 HRESULT GetResultObject(
539 [in] long lTimeout,
540 [out] IWbemClassObject **ppResultObject);
542 HRESULT GetResultString(
543 [in] long lTimeout,
544 [out] BSTR *pstrResultString);
546 HRESULT GetResultServices(
547 [in] long lTimeout,
548 [out] IWbemServices **ppServices);
550 HRESULT GetCallStatus(
551 [in] long lTimeout,
552 [out] long *plStatus);
556 object,
557 restricted,
558 uuid(027947e1-d731-11ce-a357-000000000001)
560 interface IEnumWbemClassObject : IUnknown
562 HRESULT Reset();
564 HRESULT Next(
565 [in] long lTimeout,
566 [in] ULONG uCount,
567 [out, size_is(uCount), length_is(*puReturned)] IWbemClassObject **apObjects,
568 [out] ULONG *puReturned);
570 HRESULT NextAsync(
571 [in] ULONG uCount,
572 [in] IWbemObjectSink *pSink);
574 HRESULT Clone(
575 [out] IEnumWbemClassObject **ppEnum);
577 HRESULT Skip(
578 [in] long lTimeout,
579 [in] ULONG nCount);
583 object,
584 restricted,
585 local,
586 uuid(dc12a681-737f-11cf-884d-00aa004b2e24)
588 interface IWbemClassObject : IUnknown
590 HRESULT GetQualifierSet(
591 [out] IWbemQualifierSet **ppQualSet);
593 HRESULT Get(
594 [in,string] LPCWSTR wszName,
595 [in] long lFlags,
596 [out] VARIANT *pVal,
597 [out] CIMTYPE *pType,
598 [out] long *plFlavor);
600 HRESULT Put(
601 [in,string] LPCWSTR wszName,
602 [in] long lFlags,
603 [in] VARIANT *pVal,
604 [in] CIMTYPE Type);
606 HRESULT Delete(
607 [in,string] LPCWSTR wszName);
609 HRESULT GetNames(
610 [in,string] LPCWSTR wszQualifierName,
611 [in] long lFlags,
612 [in] VARIANT *pQualifierVal,
613 [out] SAFEARRAY **pNames);
615 HRESULT BeginEnumeration(
616 [in] long lEnumFlags);
618 HRESULT Next(
619 [in] long lFlags,
620 [out] BSTR *strName,
621 [out] VARIANT *pVal,
622 [out] CIMTYPE *pType,
623 [out] long *plFlavor);
625 HRESULT EndEnumeration();
627 HRESULT GetPropertyQualifierSet(
628 [in,string] LPCWSTR wszProperty,
629 [out] IWbemQualifierSet **ppQualSet);
631 HRESULT Clone(
632 [out] IWbemClassObject **ppCopy);
634 HRESULT GetObjectText(
635 [in] long lFlags,
636 [out] BSTR *pstrObjectText);
638 HRESULT SpawnDerivedClass(
639 [in] long lFlags,
640 [out] IWbemClassObject **ppNewClass);
642 HRESULT SpawnInstance(
643 [in] long lFlags,
644 [out] IWbemClassObject **ppNewInstance);
646 HRESULT CompareTo(
647 [in] long lFlags,
648 [in] IWbemClassObject *pCompareTo);
650 HRESULT GetPropertyOrigin(
651 [in,string] LPCWSTR wszName,
652 [out] BSTR *pstrClassName);
654 HRESULT InheritsFrom(
655 [in] LPCWSTR strAncestor);
657 HRESULT GetMethod(
658 [in,string] LPCWSTR wszName,
659 [in] long lFlags,
660 [out] IWbemClassObject **ppInSignature,
661 [out] IWbemClassObject **ppOutSignature);
663 HRESULT PutMethod(
664 [in,string] LPCWSTR wszName,
665 [in] long lFlags,
666 [in] IWbemClassObject *pInSignature,
667 [in] IWbemClassObject *pOutSignature);
669 HRESULT DeleteMethod(
670 [in,string] LPCWSTR wszName);
672 HRESULT BeginMethodEnumeration(
673 [in] long lEnumFlags);
675 HRESULT NextMethod(
676 [in] long lFlags,
677 [out] BSTR *pstrName,
678 [out] IWbemClassObject **ppInSignature,
679 [out] IWbemClassObject **ppOutSignature);
681 HRESULT EndMethodEnumeration();
683 HRESULT GetMethodQualifierSet(
684 [in,string] LPCWSTR wszMethod,
685 [out] IWbemQualifierSet **ppQualSet);
687 HRESULT GetMethodOrigin(
688 [in,string] LPCWSTR wszMethodName,
689 [out] BSTR *pstrClassName);
693 object,
694 restricted,
695 local,
696 uuid(dc12a680-737f-11cf-884d-00aa004b2e24)
698 interface IWbemQualifierSet : IUnknown
700 HRESULT Get(
701 [in,string] LPCWSTR wszName,
702 [in] long lFlags,
703 [out] VARIANT *pVal,
704 [out] long *plFlavor);
706 HRESULT Put(
707 [in,string] LPCWSTR wszName,
708 [in] VARIANT *pVal,
709 [in] long lFlavor);
711 HRESULT Delete(
712 [in,string] LPCWSTR wszName);
714 HRESULT GetNames(
715 [in] long lFlags,
716 [out] SAFEARRAY **pNames);
718 HRESULT BeginEnumeration(
719 [in] long lFlags);
721 HRESULT Next(
722 [in] long lFlags,
723 [out] BSTR *pstrName,
724 [out] VARIANT *pVal,
725 [out] long *plFlavor);
727 HRESULT EndEnumeration();
731 typedef [v1_enum] enum tag_WBEM_UNSECAPP_FLAG_TYPE
733 WBEM_FLAG_UNSECAPP_DEFAULT_CHECK_ACCESS,
734 WBEM_FLAG_UNSECAPP_CHECK_ACCESS,
735 WBEM_FLAG_UNSECAPP_DONT_CHECK_ACCESS
736 } WBEM_UNSECAPP_FLAG_TYPE;
739 object,
740 restricted,
741 uuid(1cfaba8c-1523-11d1-ad79-00c04fd8fdff)
743 interface IUnsecuredApartment : IUnknown
745 HRESULT CreateObjectStub(
746 [in] IUnknown *object,
747 [out] IUnknown **stub);
751 object,
752 restricted,
753 uuid(31739d04-3471-4cf4-9a7c-57a44ae71956)
755 interface IWbemUnsecuredApartment : IUnsecuredApartment
757 HRESULT CreateSinkStub(
758 [in] IWbemObjectSink *sink,
759 [in] DWORD flags,
760 [in,unique] const WCHAR *reserved,
761 [out] IWbemObjectSink **stub);
765 uuid(49bd2028-1523-11d1-ad79-00c04fd8fdff)
767 coclass UnsecuredApartment
769 interface IUnsecuredApartment;
770 interface IWbemUnsecuredApartment;
774 uuid(9a653086-174f-11d2-b5f9-00104b703efd)
776 coclass WbemClassObject
778 interface IWbemClassObject;
782 uuid(eb87e1bd-3233-11d2-aec9-00c04fb68820)
784 coclass WbemStatusCodeText
786 interface IWbemStatusCodeText;