msado15: Implement ADORecordsetConstruction get/put Rowset.
[wine.git] / include / wbemcli.idl
blob4a2c1f785c9d68b6dc8749a77b6fa9012a7692c5
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 [v1_enum] enum tag_WBEM_REFRESHER_FLAGS
260 WBEM_FLAG_REFRESH_AUTO_RECONNECT = 0,
261 WBEM_FLAG_REFRESH_NO_AUTO_RECONNECT = 1
262 } WBEM_REFRESHER_FLAGS;
264 typedef long CIMTYPE;
267 object,
268 restricted,
269 local,
270 uuid(dc12a687-737f-11cf-884d-00aa004b2e24),
271 pointer_default(unique)
273 interface IWbemLocator : IUnknown
275 HRESULT ConnectServer(
276 [in] const BSTR strNetworkResource,
277 [in] const BSTR strUser,
278 [in] const BSTR strPassword,
279 [in] const BSTR strLocale,
280 [in] LONG lSecurityFlags,
281 [in] const BSTR strAuthority,
282 [in] IWbemContext *pCtx,
283 [out] IWbemServices **ppNamespace);
287 object,
288 local,
289 uuid(eb87e1bc-3233-11d2-aec9-00c04fb68820)
291 interface IWbemStatusCodeText : IUnknown
293 HRESULT GetErrorCodeText(
294 [in] HRESULT hRes,
295 [in] LCID LocaleId,
296 [in] LONG lFlags,
297 [out] BSTR *MessageText);
299 HRESULT GetFacilityCodeText(
300 [in] HRESULT hRes,
301 [in] LCID LocaleId,
302 [in] LONG lFlags,
303 [out] BSTR *MessageText);
307 object,
308 restricted,
309 uuid(7c857801-7381-11cf-884d-00aa004b2e24)
311 interface IWbemObjectSink : IUnknown
313 HRESULT Indicate(
314 [in] long lObjectCount,
315 [in, size_is(lObjectCount)] IWbemClassObject **apObjArray);
317 HRESULT SetStatus(
318 [in] long lFlags,
319 [in] HRESULT hResult,
320 [in] BSTR strParam,
321 [in] IWbemClassObject *pObjParam);
324 typedef [v1_enum] enum tag_WBEM_GENERIC_FLAG_TYPE
326 WBEM_FLAG_RETURN_WBEM_COMPLETE = 0,
327 WBEM_FLAG_BIDIRECTIONAL = 0,
328 WBEM_FLAG_RETURN_ERROR_OBJECT = 0,
329 WBEM_FLAG_DONT_SEND_STATUS = 0,
330 WBEM_FLAG_SEND_ONLY_SELECTED = 0,
331 WBEM_FLAG_RETURN_IMMEDIATELY = 0x10,
332 WBEM_FLAG_FORWARD_ONLY = 0x20,
333 WBEM_FLAG_NO_ERROR_OBJECT = 0x40,
334 WBEM_FLAG_SEND_STATUS = 0x80,
335 WBEM_FLAG_ENSURE_LOCATABLE = 0x100,
336 WBEM_FLAG_DIRECT_READ = 0x200,
337 WBEM_MASK_RESERVED_FLAGS = 0x1f000,
338 WBEM_FLAG_USE_AMENDED_QUALIFIERS = 0x20000,
339 WBEM_FLAG_STRONG_VALIDATION = 0x100000
340 } WBEM_GENERIC_FLAG_TYPE;
343 object,
344 restricted,
345 local,
346 uuid(44aca674-e8fc-11d0-a07c-00c04fb68820)
348 interface IWbemContext : IUnknown
350 HRESULT Clone(
351 [out] IWbemContext **ppNewCopy);
353 HRESULT GetNames(
354 [in] long lFlags,
355 [out] SAFEARRAY(BSTR) *pNames);
357 HRESULT BeginEnumeration(
358 [in] long lFlags);
360 HRESULT Next(
361 [in] long lFlags,
362 [out] BSTR *pstrName,
363 [out] VARIANT *pValue);
365 HRESULT EndEnumeration();
367 HRESULT SetValue(
368 [in, string] LPCWSTR wszName,
369 [in] long lFlags,
370 [in] VARIANT *pValue);
372 HRESULT GetValue(
373 [in, string] LPCWSTR wszName,
374 [in] long lFlags,
375 [out] VARIANT *pValue);
377 HRESULT DeleteValue(
378 [in, string] LPCWSTR wszName,
379 [in] long lFlags);
381 HRESULT DeleteAll();
385 object,
386 restricted,
387 uuid(9556dc99-828c-11cf-a37e-00aa003240c7),
388 pointer_default(unique)
390 interface IWbemServices : IUnknown
392 HRESULT OpenNamespace(
393 [in] const BSTR strNamespace,
394 [in] long lFlags,
395 [in] IWbemContext *pCtx,
396 [out] IWbemServices **ppWorkingNamespace,
397 [out] IWbemCallResult **ppResult);
399 HRESULT CancelAsyncCall(
400 [in] IWbemObjectSink *pSink);
402 HRESULT QueryObjectSink(
403 [in] long lFlags,
404 [out] IWbemObjectSink **ppResponseHandler);
406 HRESULT GetObject(
407 [in] const BSTR strObjectPath,
408 [in] long lFlags,
409 [in] IWbemContext *pCtx,
410 [out] IWbemClassObject **ppObject,
411 [out] IWbemCallResult **ppCallResult);
413 HRESULT GetObjectAsync(
414 [in] const BSTR strObjectPath,
415 [in] long lFlags,
416 [in] IWbemContext *pCtx,
417 [in] IWbemObjectSink *pResponseHandler);
419 HRESULT PutClass(
420 [in] IWbemClassObject *pObject,
421 [in] long lFlags,
422 [in] IWbemContext *pCtx,
423 [out] IWbemCallResult **ppCallResult);
425 HRESULT PutClassAsync(
426 [in] IWbemClassObject *pObject,
427 [in] long lFlags,
428 [in] IWbemContext *pCtx,
429 [in] IWbemObjectSink *pResponseHandler);
431 HRESULT DeleteClass(
432 [in] const BSTR strClass,
433 [in] long lFlags,
434 [in] IWbemContext *pCtx,
435 [out] IWbemCallResult **ppCallResult);
437 HRESULT DeleteClassAsync(
438 [in] const BSTR strClass,
439 [in] long lFlags,
440 [in] IWbemContext *pCtx,
441 [in] IWbemObjectSink *pResponseHandler);
443 HRESULT CreateClassEnum(
444 [in] const BSTR strSuperclass,
445 [in] long lFlags,
446 [in] IWbemContext *pCtx,
447 [out] IEnumWbemClassObject **ppEnum);
449 HRESULT CreateClassEnumAsync(
450 [in] const BSTR strSuperclass,
451 [in] long lFlags,
452 [in] IWbemContext *pCtx,
453 [in] IWbemObjectSink *pResponseHandler);
455 HRESULT PutInstance(
456 [in] IWbemClassObject *pInst,
457 [in] long lFlags,
458 [in] IWbemContext *pCtx,
459 [out] IWbemCallResult **ppCallResult);
461 HRESULT PutInstanceAsync(
462 [in] IWbemClassObject *pInst,
463 [in] long lFlags,
464 [in] IWbemContext *pCtx,
465 [in] IWbemObjectSink *pResponseHandler);
467 HRESULT DeleteInstance(
468 [in] const BSTR strObjectPath,
469 [in] long lFlags,
470 [in] IWbemContext *pCtx,
471 [out] IWbemCallResult **ppCallResult);
473 HRESULT DeleteInstanceAsync(
474 [in] const BSTR strObjectPath,
475 [in] long lFlags,
476 [in] IWbemContext *pCtx,
477 [in] IWbemObjectSink *pResponseHandler);
479 HRESULT CreateInstanceEnum(
480 [in] const BSTR strFilter,
481 [in] long lFlags,
482 [in] IWbemContext *pCtx,
483 [out] IEnumWbemClassObject **ppEnum);
485 HRESULT CreateInstanceEnumAsync(
486 [in] const BSTR strFilter,
487 [in] long lFlags,
488 [in] IWbemContext *pCtx,
489 [in] IWbemObjectSink *pResponseHandler);
491 HRESULT ExecQuery(
492 [in] const BSTR strQueryLanguage,
493 [in] const BSTR strQuery,
494 [in] long lFlags,
495 [in] IWbemContext *pCtx,
496 [out] IEnumWbemClassObject **ppEnum);
498 HRESULT ExecQueryAsync(
499 [in] const BSTR strQueryLanguage,
500 [in] const BSTR strQuery,
501 [in] long lFlags,
502 [in] IWbemContext *pCtx,
503 [in] IWbemObjectSink *pResponseHandler);
505 HRESULT ExecNotificationQuery(
506 [in] const BSTR strQueryLanguage,
507 [in] const BSTR strQuery,
508 [in] long lFlags,
509 [in] IWbemContext *pCtx,
510 [out] IEnumWbemClassObject **ppEnum);
512 HRESULT ExecNotificationQueryAsync(
513 [in] const BSTR strQueryLanguage,
514 [in] const BSTR strQuery,
515 [in] long lFlags,
516 [in] IWbemContext *pCtx,
517 [in] IWbemObjectSink *pResponseHandler);
519 HRESULT ExecMethod(
520 [in] const BSTR strObjectPath,
521 [in] const BSTR strMethodName,
522 [in] long lFlags,
523 [in] IWbemContext *pCtx,
524 [in] IWbemClassObject *pInParams,
525 [out] IWbemClassObject **ppOutParams,
526 [out] IWbemCallResult **ppCallResult);
528 HRESULT ExecMethodAsync(
529 [in] const BSTR strObjectPath,
530 [in] const BSTR strMethodName,
531 [in] long lFlags,
532 [in] IWbemContext *pCtx,
533 [in] IWbemClassObject *pInParams,
534 [in] IWbemObjectSink *pResponseHandler);
538 object,
539 restricted,
540 uuid(44aca675-e8fc-11d0-a07c-00c04fb68820)
542 interface IWbemCallResult : IUnknown
544 HRESULT GetResultObject(
545 [in] long lTimeout,
546 [out] IWbemClassObject **ppResultObject);
548 HRESULT GetResultString(
549 [in] long lTimeout,
550 [out] BSTR *pstrResultString);
552 HRESULT GetResultServices(
553 [in] long lTimeout,
554 [out] IWbemServices **ppServices);
556 HRESULT GetCallStatus(
557 [in] long lTimeout,
558 [out] long *plStatus);
562 object,
563 restricted,
564 uuid(027947e1-d731-11ce-a357-000000000001)
566 interface IEnumWbemClassObject : IUnknown
568 HRESULT Reset();
570 HRESULT Next(
571 [in] long lTimeout,
572 [in] ULONG uCount,
573 [out, size_is(uCount), length_is(*puReturned)] IWbemClassObject **apObjects,
574 [out] ULONG *puReturned);
576 HRESULT NextAsync(
577 [in] ULONG uCount,
578 [in] IWbemObjectSink *pSink);
580 HRESULT Clone(
581 [out] IEnumWbemClassObject **ppEnum);
583 HRESULT Skip(
584 [in] long lTimeout,
585 [in] ULONG nCount);
589 object,
590 restricted,
591 local,
592 uuid(dc12a681-737f-11cf-884d-00aa004b2e24)
594 interface IWbemClassObject : IUnknown
596 HRESULT GetQualifierSet(
597 [out] IWbemQualifierSet **ppQualSet);
599 HRESULT Get(
600 [in,string] LPCWSTR wszName,
601 [in] long lFlags,
602 [out] VARIANT *pVal,
603 [out] CIMTYPE *pType,
604 [out] long *plFlavor);
606 HRESULT Put(
607 [in,string] LPCWSTR wszName,
608 [in] long lFlags,
609 [in] VARIANT *pVal,
610 [in] CIMTYPE Type);
612 HRESULT Delete(
613 [in,string] LPCWSTR wszName);
615 HRESULT GetNames(
616 [in,string] LPCWSTR wszQualifierName,
617 [in] long lFlags,
618 [in] VARIANT *pQualifierVal,
619 [out] SAFEARRAY **pNames);
621 HRESULT BeginEnumeration(
622 [in] long lEnumFlags);
624 HRESULT Next(
625 [in] long lFlags,
626 [out] BSTR *strName,
627 [out] VARIANT *pVal,
628 [out] CIMTYPE *pType,
629 [out] long *plFlavor);
631 HRESULT EndEnumeration();
633 HRESULT GetPropertyQualifierSet(
634 [in,string] LPCWSTR wszProperty,
635 [out] IWbemQualifierSet **ppQualSet);
637 HRESULT Clone(
638 [out] IWbemClassObject **ppCopy);
640 HRESULT GetObjectText(
641 [in] long lFlags,
642 [out] BSTR *pstrObjectText);
644 HRESULT SpawnDerivedClass(
645 [in] long lFlags,
646 [out] IWbemClassObject **ppNewClass);
648 HRESULT SpawnInstance(
649 [in] long lFlags,
650 [out] IWbemClassObject **ppNewInstance);
652 HRESULT CompareTo(
653 [in] long lFlags,
654 [in] IWbemClassObject *pCompareTo);
656 HRESULT GetPropertyOrigin(
657 [in,string] LPCWSTR wszName,
658 [out] BSTR *pstrClassName);
660 HRESULT InheritsFrom(
661 [in] LPCWSTR strAncestor);
663 HRESULT GetMethod(
664 [in,string] LPCWSTR wszName,
665 [in] long lFlags,
666 [out] IWbemClassObject **ppInSignature,
667 [out] IWbemClassObject **ppOutSignature);
669 HRESULT PutMethod(
670 [in,string] LPCWSTR wszName,
671 [in] long lFlags,
672 [in] IWbemClassObject *pInSignature,
673 [in] IWbemClassObject *pOutSignature);
675 HRESULT DeleteMethod(
676 [in,string] LPCWSTR wszName);
678 HRESULT BeginMethodEnumeration(
679 [in] long lEnumFlags);
681 HRESULT NextMethod(
682 [in] long lFlags,
683 [out] BSTR *pstrName,
684 [out] IWbemClassObject **ppInSignature,
685 [out] IWbemClassObject **ppOutSignature);
687 HRESULT EndMethodEnumeration();
689 HRESULT GetMethodQualifierSet(
690 [in,string] LPCWSTR wszMethod,
691 [out] IWbemQualifierSet **ppQualSet);
693 HRESULT GetMethodOrigin(
694 [in,string] LPCWSTR wszMethodName,
695 [out] BSTR *pstrClassName);
699 object,
700 restricted,
701 local,
702 uuid(dc12a680-737f-11cf-884d-00aa004b2e24)
704 interface IWbemQualifierSet : IUnknown
706 HRESULT Get(
707 [in,string] LPCWSTR wszName,
708 [in] long lFlags,
709 [out] VARIANT *pVal,
710 [out] long *plFlavor);
712 HRESULT Put(
713 [in,string] LPCWSTR wszName,
714 [in] VARIANT *pVal,
715 [in] long lFlavor);
717 HRESULT Delete(
718 [in,string] LPCWSTR wszName);
720 HRESULT GetNames(
721 [in] long lFlags,
722 [out] SAFEARRAY **pNames);
724 HRESULT BeginEnumeration(
725 [in] long lFlags);
727 HRESULT Next(
728 [in] long lFlags,
729 [out] BSTR *pstrName,
730 [out] VARIANT *pVal,
731 [out] long *plFlavor);
733 HRESULT EndEnumeration();
737 typedef [v1_enum] enum tag_WBEM_UNSECAPP_FLAG_TYPE
739 WBEM_FLAG_UNSECAPP_DEFAULT_CHECK_ACCESS,
740 WBEM_FLAG_UNSECAPP_CHECK_ACCESS,
741 WBEM_FLAG_UNSECAPP_DONT_CHECK_ACCESS
742 } WBEM_UNSECAPP_FLAG_TYPE;
745 object,
746 restricted,
747 uuid(1cfaba8c-1523-11d1-ad79-00c04fd8fdff)
749 interface IUnsecuredApartment : IUnknown
751 HRESULT CreateObjectStub(
752 [in] IUnknown *object,
753 [out] IUnknown **stub);
757 object,
758 restricted,
759 uuid(31739d04-3471-4cf4-9a7c-57a44ae71956)
761 interface IWbemUnsecuredApartment : IUnsecuredApartment
763 HRESULT CreateSinkStub(
764 [in] IWbemObjectSink *sink,
765 [in] DWORD flags,
766 [in,unique] const WCHAR *reserved,
767 [out] IWbemObjectSink **stub);
771 object,
772 restricted,
773 local,
774 uuid(49353c9a-516b-11d1-aea6-00c04fb68820)
776 interface IWbemObjectAccess : IWbemClassObject
778 HRESULT GetPropertyHandle(
779 [in, string] LPCWSTR wszPropertyName,
780 [out] CIMTYPE *pType,
781 [out] long *plHandle);
783 HRESULT WritePropertyValue(
784 [in] long lHandle,
785 [in] long lNumBytes,
786 [in, size_is(lNumBytes)] const byte *aData);
788 HRESULT ReadPropertyValue(
789 [in] long lHandle,
790 [in] long lBufferSize,
791 [out] long *plNumBytes,
792 [out, size_is(lBufferSize), length_is(*plNumBytes)] byte *aData);
794 HRESULT ReadDWORD(
795 [in] long lHandle,
796 [out] DWORD *pdw);
798 HRESULT WriteDWORD(
799 [in] long lHandle,
800 [in] DWORD dw);
802 HRESULT ReadQWORD(
803 [in] long lHandle,
804 [out] unsigned __int64 *pqw);
806 HRESULT WriteQWORD(
807 [in] long lHandle,
808 [in] unsigned __int64 qw);
810 HRESULT GetPropertyInfoByHandle(
811 [in] long lHandle,
812 [out] BSTR *pstrName,
813 [out] CIMTYPE *pType);
815 HRESULT Lock(
816 [in] long lFlags);
818 HRESULT Unlock(
819 [in] long lFlags);
823 object,
824 restricted,
825 local,
826 uuid(49353c99-516b-11d1-aea6-00c04fb68820)
828 interface IWbemRefresher : IUnknown
830 HRESULT Refresh(
831 [in] long lFlags);
835 object,
836 restricted,
837 local,
838 uuid(2705c288-79ae-11d2-b348-00105a1f8177)
840 interface IWbemHiPerfEnum : IUnknown
842 HRESULT AddObjects(
843 [in] long lFlags,
844 [in] ULONG uNumObjects,
845 [in, size_is(uNumObjects)] long *apIds,
846 [in, size_is(uNumObjects)] IWbemObjectAccess **apObj);
848 HRESULT RemoveObjects(
849 [in] long lFlags,
850 [in] ULONG uNumObjects,
851 [in, size_is(uNumObjects)] long *apIds);
853 HRESULT GetObjects(
854 [in] long lFlags,
855 [in] ULONG uNumObjects,
856 [out, size_is(uNumObjects), length_is(*puReturned)] IWbemObjectAccess **apObj,
857 [out] ULONG *puReturned);
859 HRESULT RemoveAll(
860 [in] long lFlags);
864 object,
865 restricted,
866 local,
867 uuid(49353c92-516b-11d1-aea6-00c04fb68820)
869 interface IWbemConfigureRefresher : IUnknown
871 HRESULT AddObjectByPath(
872 [in] IWbemServices *pNamespace,
873 [in, string] LPCWSTR wszPath,
874 [in] long lFlags,
875 [in] IWbemContext *pContext,
876 [out] IWbemClassObject **ppRefreshable,
877 [out] long *plId);
879 HRESULT AddObjectByTemplate(
880 [in] IWbemServices *pNamespace,
881 [in] IWbemClassObject *pTemplate,
882 [in] long lFlags,
883 [in] IWbemContext *pContext,
884 [out] IWbemClassObject **ppRefreshable,
885 [out] long *plId);
887 HRESULT AddRefresher(
888 [in] IWbemRefresher *pRefresher,
889 [in] long lFlags,
890 [out] long *plId);
892 HRESULT Remove(
893 [in] long lId,
894 [in] long lFlags);
896 HRESULT AddEnum(
897 [in] IWbemServices *pNamespace,
898 [in, string] LPCWSTR wszClassName,
899 [in] long lFlags,
900 [in] IWbemContext *pContext,
901 [out] IWbemHiPerfEnum **ppEnum,
902 [out] long *plId);
906 uuid(49bd2028-1523-11d1-ad79-00c04fd8fdff)
908 coclass UnsecuredApartment
910 interface IUnsecuredApartment;
911 interface IWbemUnsecuredApartment;
915 uuid(9a653086-174f-11d2-b5f9-00104b703efd)
917 coclass WbemClassObject
919 interface IWbemClassObject;
923 uuid(eb87e1bd-3233-11d2-aec9-00c04fb68820)
925 coclass WbemStatusCodeText
927 interface IWbemStatusCodeText;
931 uuid(c71566f2-561e-11d1-ad87-00c04fd8fdff)
933 coclass WbemRefresher
935 interface IMarshal;
936 interface IWbemRefresher;
937 interface IWbemConfigureRefresher;