1 | /*
|
---|
2 | * Copyright 2009 Hans Leidekker for CodeWeavers
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | cpp_quote("DEFINE_GUID(CLSID_WbemLocator, 0x4590f811,0x1d3A,0x11d0,0x89,0x1f,0x00,0xaa,0x00,0x4b,0x2e,0x24);")
|
---|
29 | cpp_quote("DEFINE_GUID(CLSID_WbemStatusCode, 0xeb87e1bd,0x3233,0x11d2,0xae,0xc9,0x00,0xc0,0x4f,0xb6,0x88,0x20);")
|
---|
30 |
|
---|
31 | import "oaidl.idl";
|
---|
32 | import "objidl.idl";
|
---|
33 |
|
---|
34 | interface IWbemContext;
|
---|
35 | interface IWbemServices;
|
---|
36 | interface IWbemStatusCodeText;
|
---|
37 | interface IWbemCallResult;
|
---|
38 | interface IWbemObjectSink;
|
---|
39 | interface IWbemClassObject;
|
---|
40 | interface IEnumWbemClassObject;
|
---|
41 | interface IWbemQualifierSet;
|
---|
42 |
|
---|
43 | typedef [v1_enum] enum tag_WBEMSTATUS
|
---|
44 | {
|
---|
45 | WBEM_NO_ERROR = 0,
|
---|
46 | WBEM_S_NO_ERROR = 0,
|
---|
47 | WBEM_S_SAME = 0,
|
---|
48 | WBEM_S_FALSE = 1,
|
---|
49 | WBEM_S_ALREADY_EXISTS = 0x40001,
|
---|
50 | WBEM_S_RESET_TO_DEFAULT = 0x40002,
|
---|
51 | WBEM_S_DIFFERENT = 0x40003,
|
---|
52 | WBEM_S_TIMEDOUT = 0x40004,
|
---|
53 | WBEM_S_NO_MORE_DATA = 0x40005,
|
---|
54 | WBEM_S_OPERATION_CANCELLED = 0x40006,
|
---|
55 | WBEM_S_PENDING = 0x40007,
|
---|
56 | WBEM_S_DUPLICATE_OBJECTS = 0x40008,
|
---|
57 | WBEM_S_ACCESS_DENIED = 0x40009,
|
---|
58 | WBEM_S_PARTIAL_RESULTS = 0x40010,
|
---|
59 | WBEM_S_SOURCE_NOT_AVAILABLE = 0x40017,
|
---|
60 | WBEM_E_FAILED = 0x80041001,
|
---|
61 | WBEM_E_NOT_FOUND = 0x80041002,
|
---|
62 | WBEM_E_ACCESS_DENIED = 0x80041003,
|
---|
63 | WBEM_E_PROVIDER_FAILURE = 0x80041004,
|
---|
64 | WBEM_E_TYPE_MISMATCH = 0x80041005,
|
---|
65 | WBEM_E_OUT_OF_MEMORY = 0x80041006,
|
---|
66 | WBEM_E_INVALID_CONTEXT = 0x80041007,
|
---|
67 | WBEM_E_INVALID_PARAMETER = 0x80041008,
|
---|
68 | WBEM_E_NOT_AVAILABLE = 0x80041009,
|
---|
69 | WBEM_E_CRITICAL_ERROR = 0x8004100a,
|
---|
70 | WBEM_E_INVALID_STREAM = 0x8004100b,
|
---|
71 | WBEM_E_NOT_SUPPORTED = 0x8004100c,
|
---|
72 | WBEM_E_INVALID_SUPERCLASS = 0x8004100d,
|
---|
73 | WBEM_E_INVALID_NAMESPACE = 0x8004100e,
|
---|
74 | WBEM_E_INVALID_OBJECT = 0x8004100f,
|
---|
75 | WBEM_E_INVALID_CLASS = 0x80041010,
|
---|
76 | WBEM_E_PROVIDER_NOT_FOUND = 0x80041011,
|
---|
77 | WBEM_E_INVALID_PROVIDER_REGISTRATION = 0x80041012,
|
---|
78 | WBEM_E_PROVIDER_LOAD_FAILURE = 0x80041013,
|
---|
79 | WBEM_E_INITIALIZATION_FAILURE = 0x80041014,
|
---|
80 | WBEM_E_TRANSPORT_FAILURE = 0x80041015,
|
---|
81 | WBEM_E_INVALID_OPERATION = 0x80041016,
|
---|
82 | WBEM_E_INVALID_QUERY = 0x80041017,
|
---|
83 | WBEM_E_INVALID_QUERY_TYPE = 0x80041018,
|
---|
84 | WBEM_E_ALREADY_EXISTS = 0x80041019,
|
---|
85 | WBEM_E_OVERRIDE_NOT_ALLOWED = 0x8004101a,
|
---|
86 | WBEM_E_PROPAGATED_QUALIFIER = 0x8004101b,
|
---|
87 | WBEM_E_PROPAGATED_PROPERTY = 0x8004101c,
|
---|
88 | WBEM_E_UNEXPECTED = 0x8004101d,
|
---|
89 | WBEM_E_ILLEGAL_OPERATION = 0x8004101e,
|
---|
90 | WBEM_E_CANNOT_BE_KEY = 0x8004101f,
|
---|
91 | WBEM_E_INCOMPLETE_CLASS = 0x80041020,
|
---|
92 | WBEM_E_INVALID_SYNTAX = 0x80041021,
|
---|
93 | WBEM_E_NONDECORATED_OBJECT = 0x80041022,
|
---|
94 | WBEM_E_READ_ONLY = 0x80041023,
|
---|
95 | WBEM_E_PROVIDER_NOT_CAPABLE = 0x80041024,
|
---|
96 | WBEM_E_CLASS_HAS_CHILDREN = 0x80041025,
|
---|
97 | WBEM_E_CLASS_HAS_INSTANCES = 0x80041026,
|
---|
98 | WBEM_E_QUERY_NOT_IMPLEMENTED = 0x80041027,
|
---|
99 | WBEM_E_ILLEGAL_NULL = 0x80041028,
|
---|
100 | WBEM_E_INVALID_QUALIFIER_TYPE = 0x80041029,
|
---|
101 | WBEM_E_INVALID_PROPERTY_TYPE = 0x8004102a,
|
---|
102 | WBEM_E_VALUE_OUT_OF_RANGE = 0x8004102b,
|
---|
103 | WBEM_E_CANNOT_BE_SINGLETON = 0x8004102c,
|
---|
104 | WBEM_E_INVALID_CIM_TYPE = 0x8004102d,
|
---|
105 | WBEM_E_INVALID_METHOD = 0x8004102e,
|
---|
106 | WBEM_E_INVALID_METHOD_PARAMETERS = 0x8004102f,
|
---|
107 | WBEM_E_SYSTEM_PROPERTY = 0x80041030,
|
---|
108 | WBEM_E_INVALID_PROPERTY = 0x80041031,
|
---|
109 | WBEM_E_CALL_CANCELLED = 0x80041032,
|
---|
110 | WBEM_E_SHUTTING_DOWN = 0x80041033,
|
---|
111 | WBEM_E_PROPAGATED_METHOD = 0x80041034,
|
---|
112 | WBEM_E_UNSUPPORTED_PARAMETER = 0x80041035,
|
---|
113 | WBEM_E_MISSING_PARAMETER_ID = 0x80041036,
|
---|
114 | WBEM_E_INVALID_PARAMETER_ID = 0x80041037,
|
---|
115 | WBEM_E_NONCONSECUTIVE_PARAMETER_IDS = 0x80041038,
|
---|
116 | WBEM_E_PARAMETER_ID_ON_RETVAL = 0x80041039,
|
---|
117 | WBEM_E_INVALID_OBJECT_PATH = 0x8004103a,
|
---|
118 | WBEM_E_OUT_OF_DISK_SPACE = 0x8004103b,
|
---|
119 | WBEM_E_BUFFER_TOO_SMALL = 0x8004103c,
|
---|
120 | WBEM_E_UNSUPPORTED_PUT_EXTENSION = 0x8004103d,
|
---|
121 | WBEM_E_UNKNOWN_OBJECT_TYPE = 0x8004103e,
|
---|
122 | WBEM_E_UNKNOWN_PACKET_TYPE = 0x8004103f,
|
---|
123 | WBEM_E_MARSHAL_VERSION_MISMATCH = 0x80041040,
|
---|
124 | WBEM_E_MARSHAL_INVALID_SIGNATURE = 0x80041041,
|
---|
125 | WBEM_E_INVALID_QUALIFIER = 0x80041042,
|
---|
126 | WBEM_E_INVALID_DUPLICATE_PARAMETER = 0x80041043,
|
---|
127 | WBEM_E_TOO_MUCH_DATA = 0x80041044,
|
---|
128 | WBEM_E_SERVER_TOO_BUSY = 0x80041045,
|
---|
129 | WBEM_E_INVALID_FLAVOR = 0x80041046,
|
---|
130 | WBEM_E_CIRCULAR_REFERENCE = 0x80041047,
|
---|
131 | WBEM_E_UNSUPPORTED_CLASS_UPDATE = 0x80041048,
|
---|
132 | WBEM_E_CANNOT_CHANGE_KEY_INHERITANCE = 0x80041049,
|
---|
133 | WBEM_E_CANNOT_CHANGE_INDEX_INHERITANCE = 0x80041050,
|
---|
134 | WBEM_E_TOO_MANY_PROPERTIES = 0x80041051,
|
---|
135 | WBEM_E_UPDATE_TYPE_MISMATCH = 0x80041052,
|
---|
136 | WBEM_E_UPDATE_OVERRIDE_NOT_ALLOWED = 0x80041053,
|
---|
137 | WBEM_E_UPDATE_PROPAGATED_METHOD = 0x80041054,
|
---|
138 | WBEM_E_METHOD_NOT_IMPLEMENTED = 0x80041055,
|
---|
139 | WBEM_E_METHOD_DISABLED = 0x80041056,
|
---|
140 | WBEM_E_REFRESHER_BUSY = 0x80041057,
|
---|
141 | WBEM_E_UNPARSABLE_QUERY = 0x80041058,
|
---|
142 | WBEM_E_NOT_EVENT_CLASS = 0x80041059,
|
---|
143 | WBEM_E_MISSING_GROUP_WITHIN = 0x8004105a,
|
---|
144 | WBEM_E_MISSING_AGGREGATION_LIST = 0x8004105b,
|
---|
145 | WBEM_E_PROPERTY_NOT_AN_OBJECT = 0x8004105c,
|
---|
146 | WBEM_E_AGGREGATING_BY_OBJECT = 0x8004105d,
|
---|
147 | WBEM_E_UNINTERPRETABLE_PROVIDER_QUERY = 0x8004105f,
|
---|
148 | WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING = 0x80041060,
|
---|
149 | WBEM_E_QUEUE_OVERFLOW = 0x80041061,
|
---|
150 | WBEM_E_PRIVILEGE_NOT_HELD = 0x80041062,
|
---|
151 | WBEM_E_INVALID_OPERATOR = 0x80041063,
|
---|
152 | WBEM_E_LOCAL_CREDENTIALS = 0x80041064,
|
---|
153 | WBEM_E_CANNOT_BE_ABSTRACT = 0x80041065,
|
---|
154 | WBEM_E_AMENDED_OBJECT = 0x80041066,
|
---|
155 | WBEM_E_CLIENT_TOO_SLOW = 0x80041067,
|
---|
156 | WBEM_E_NULL_SECURITY_DESCRIPTOR = 0x80041068,
|
---|
157 | WBEM_E_TIMED_OUT = 0x80041069,
|
---|
158 | WBEM_E_INVALID_ASSOCIATION = 0x8004106a,
|
---|
159 | WBEM_E_AMBIGUOUS_OPERATION = 0x8004106b,
|
---|
160 | WBEM_E_QUOTA_VIOLATION = 0x8004106c,
|
---|
161 | WBEM_E_RESERVED_001 = 0x8004106d,
|
---|
162 | WBEM_E_RESERVED_002 = 0x8004106e,
|
---|
163 | WBEM_E_UNSUPPORTED_LOCALE = 0x8004106f,
|
---|
164 | WBEM_E_HANDLE_OUT_OF_DATE = 0x80041070,
|
---|
165 | WBEM_E_CONNECTION_FAILED = 0x80041071,
|
---|
166 | WBEM_E_INVALID_HANDLE_REQUEST = 0x80041072,
|
---|
167 | WBEM_E_PROPERTY_NAME_TOO_WIDE = 0x80041073,
|
---|
168 | WBEM_E_CLASS_NAME_TOO_WIDE = 0x80041074,
|
---|
169 | WBEM_E_METHOD_NAME_TOO_WIDE = 0x80041075,
|
---|
170 | WBEM_E_QUALIFIER_NAME_TOO_WIDE = 0x80041076,
|
---|
171 | WBEM_E_RERUN_COMMAND = 0x80041077,
|
---|
172 | WBEM_E_DATABASE_VER_MISMATCH = 0x80041078,
|
---|
173 | WBEM_E_VETO_DELETE = 0x80041079,
|
---|
174 | WBEM_E_VETO_PUT = 0x8004107a,
|
---|
175 | WBEM_E_INVALID_LOCALE = 0x80041080,
|
---|
176 | WBEM_E_PROVIDER_SUSPENDED = 0x80041081,
|
---|
177 | WBEM_E_SYNCHRONIZATION_REQUIRED = 0x80041082,
|
---|
178 | WBEM_E_NO_SCHEMA = 0x80041083,
|
---|
179 | WBEM_E_PROVIDER_ALREADY_REGISTERED = 0x80041084,
|
---|
180 | WBEM_E_PROVIDER_NOT_REGISTERED = 0x80041085,
|
---|
181 | WBEM_E_FATAL_TRANSPORT_ERROR = 0x80041086,
|
---|
182 | WBEM_E_ENCRYPTED_CONNECTION_REQUIRED = 0x80041087,
|
---|
183 | WBEM_E_PROVIDER_TIMED_OUT = 0x80041088,
|
---|
184 | WBEM_E_NO_KEY = 0x80041089,
|
---|
185 | WBEM_E_PROVIDER_DISABLED = 0x8004108a
|
---|
186 | } WBEMSTATUS;
|
---|
187 |
|
---|
188 | typedef [v1_enum] enum tag_WBEM_STATUS_TYPE
|
---|
189 | {
|
---|
190 | WBEM_STATUS_COMPLETE = 0,
|
---|
191 | WBEM_STATUS_REQUIREMENTS = 1,
|
---|
192 | WBEM_STATUS_PROGRESS = 2
|
---|
193 | } WBEM_STATUS_TYPE;
|
---|
194 |
|
---|
195 | typedef [v1_enum] enum tag_WBEM_TIMEOUT_TYPE
|
---|
196 | {
|
---|
197 | WBEM_NO_WAIT = 0,
|
---|
198 | WBEM_INFINITE = 0xffffffff
|
---|
199 | } WBEM_TIMEOUT_TYPE;
|
---|
200 |
|
---|
201 | typedef [v1_enum] enum tag_WBEM_CONDITION_FLAG_TYPE
|
---|
202 | {
|
---|
203 | WBEM_FLAG_ALWAYS = 0,
|
---|
204 | WBEM_FLAG_ONLY_IF_TRUE = 0x1,
|
---|
205 | WBEM_FLAG_ONLY_IF_FALSE = 0x2,
|
---|
206 | WBEM_FLAG_ONLY_IF_IDENTICAL = 0x3,
|
---|
207 | WBEM_MASK_PRIMARY_CONDITION = 0x3,
|
---|
208 | WBEM_FLAG_KEYS_ONLY = 0x4,
|
---|
209 | WBEM_FLAG_REFS_ONLY = 0x8,
|
---|
210 | WBEM_FLAG_LOCAL_ONLY = 0x10,
|
---|
211 | WBEM_FLAG_PROPAGATED_ONLY = 0x20,
|
---|
212 | WBEM_FLAG_SYSTEM_ONLY = 0x30,
|
---|
213 | WBEM_FLAG_NONSYSTEM_ONLY = 0x40,
|
---|
214 | WBEM_MASK_CONDITION_ORIGIN = 0x70,
|
---|
215 | WBEM_FLAG_CLASS_OVERRIDES_ONLY = 0x100,
|
---|
216 | WBEM_FLAG_CLASS_LOCAL_AND_OVERRIDES = 0x200,
|
---|
217 | WBEM_MASK_CLASS_CONDITION = 0x300
|
---|
218 | } WBEM_CONDITION_FLAG_TYPE;
|
---|
219 |
|
---|
220 | typedef [v1_enum] enum tag_WBEM_FLAVOR_TYPE
|
---|
221 | {
|
---|
222 | WBEM_FLAVOR_DONT_PROPAGATE = 0,
|
---|
223 | WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE = 0x1,
|
---|
224 | WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS = 0x2,
|
---|
225 | WBEM_FLAVOR_MASK_PROPAGATION = 0xf,
|
---|
226 | WBEM_FLAVOR_OVERRIDABLE = 0,
|
---|
227 | WBEM_FLAVOR_NOT_OVERRIDABLE = 0x10,
|
---|
228 | WBEM_FLAVOR_MASK_PERMISSIONS = 0x10,
|
---|
229 | WBEM_FLAVOR_ORIGIN_LOCAL = 0,
|
---|
230 | WBEM_FLAVOR_ORIGIN_PROPAGATED = 0x20,
|
---|
231 | WBEM_FLAVOR_ORIGIN_SYSTEM = 0x40,
|
---|
232 | WBEM_FLAVOR_MASK_ORIGIN = 0x60,
|
---|
233 | WBEM_FLAVOR_NOT_AMENDED = 0,
|
---|
234 | WBEM_FLAVOR_AMENDED = 0x80,
|
---|
235 | WBEM_FLAVOR_MASK_AMENDED = 0x80
|
---|
236 | } WBEM_FLAVOR_TYPE;
|
---|
237 |
|
---|
238 | typedef [v1_enum] enum tag_WBEM_GENUS_TYPE
|
---|
239 | {
|
---|
240 | WBEM_GENUS_CLASS = 1,
|
---|
241 | WBEM_GENUS_INSTANCE = 2
|
---|
242 | } WBEM_GENUS_TYPE;
|
---|
243 |
|
---|
244 | typedef [v1_enum] enum tag_CIMTYPE_ENUMERATION
|
---|
245 | {
|
---|
246 | CIM_ILLEGAL = 0xfff,
|
---|
247 | CIM_EMPTY = 0,
|
---|
248 | CIM_SINT16 = 2,
|
---|
249 | CIM_SINT32 = 3,
|
---|
250 | CIM_REAL32 = 4,
|
---|
251 | CIM_REAL64 = 5,
|
---|
252 | CIM_STRING = 8,
|
---|
253 | CIM_BOOLEAN = 11,
|
---|
254 | CIM_OBJECT = 13,
|
---|
255 | CIM_SINT8 = 16,
|
---|
256 | CIM_UINT8 = 17,
|
---|
257 | CIM_UINT16 = 18,
|
---|
258 | CIM_UINT32 = 19,
|
---|
259 | CIM_SINT64 = 20,
|
---|
260 | CIM_UINT64 = 21,
|
---|
261 | CIM_DATETIME = 101,
|
---|
262 | CIM_REFERENCE = 102,
|
---|
263 | CIM_CHAR16 = 103,
|
---|
264 | CIM_FLAG_ARRAY = 0x2000
|
---|
265 | } CIMTYPE_ENUMERATION;
|
---|
266 |
|
---|
267 | typedef long CIMTYPE;
|
---|
268 |
|
---|
269 | [
|
---|
270 | object,
|
---|
271 | restricted,
|
---|
272 | local,
|
---|
273 | uuid(dc12a687-737f-11cf-884d-00aa004b2e24),
|
---|
274 | pointer_default(unique)
|
---|
275 | ]
|
---|
276 | interface IWbemLocator : IUnknown
|
---|
277 | {
|
---|
278 | HRESULT ConnectServer(
|
---|
279 | [in] const BSTR strNetworkResource,
|
---|
280 | [in] const BSTR strUser,
|
---|
281 | [in] const BSTR strPassword,
|
---|
282 | [in] const BSTR strLocale,
|
---|
283 | [in] LONG lSecurityFlags,
|
---|
284 | [in] const BSTR strAuthority,
|
---|
285 | [in] IWbemContext *pCtx,
|
---|
286 | [out] IWbemServices **ppNamespace);
|
---|
287 | };
|
---|
288 |
|
---|
289 | [
|
---|
290 | object,
|
---|
291 | local,
|
---|
292 | uuid(eb87e1bc-3233-11d2-aec9-00c04fb68820)
|
---|
293 | ]
|
---|
294 | interface IWbemStatusCodeText : IUnknown
|
---|
295 | {
|
---|
296 | HRESULT GetErrorCodeText(
|
---|
297 | [in] HRESULT hRes,
|
---|
298 | [in] LCID LocaleId,
|
---|
299 | [in] LONG lFlags,
|
---|
300 | [out] BSTR *MessageText);
|
---|
301 |
|
---|
302 | HRESULT GetFacilityCodeText(
|
---|
303 | [in] HRESULT hRes,
|
---|
304 | [in] LCID LocaleId,
|
---|
305 | [in] LONG lFlags,
|
---|
306 | [out] BSTR *MessageText);
|
---|
307 | };
|
---|
308 |
|
---|
309 | [
|
---|
310 | object,
|
---|
311 | restricted,
|
---|
312 | uuid(7c857801-7381-11cf-884d-00aa004b2e24)
|
---|
313 | ]
|
---|
314 | interface IWbemObjectSink : IUnknown
|
---|
315 | {
|
---|
316 | HRESULT Indicate(
|
---|
317 | [in] long lObjectCount,
|
---|
318 | [in, size_is(lObjectCount)] IWbemClassObject **apObjArray);
|
---|
319 |
|
---|
320 | HRESULT SetStatus(
|
---|
321 | [in] long lFlags,
|
---|
322 | [in] HRESULT hResult,
|
---|
323 | [in] BSTR strParam,
|
---|
324 | [in] IWbemClassObject *pObjParam);
|
---|
325 | };
|
---|
326 |
|
---|
327 | typedef [v1_enum] enum tag_WBEM_GENERIC_FLAG_TYPE
|
---|
328 | {
|
---|
329 | WBEM_FLAG_RETURN_WBEM_COMPLETE = 0,
|
---|
330 | WBEM_FLAG_BIDIRECTIONAL = 0,
|
---|
331 | WBEM_FLAG_RETURN_ERROR_OBJECT = 0,
|
---|
332 | WBEM_FLAG_DONT_SEND_STATUS = 0,
|
---|
333 | WBEM_FLAG_SEND_ONLY_SELECTED = 0,
|
---|
334 | WBEM_FLAG_RETURN_IMMEDIATELY = 0x10,
|
---|
335 | WBEM_FLAG_FORWARD_ONLY = 0x20,
|
---|
336 | WBEM_FLAG_NO_ERROR_OBJECT = 0x40,
|
---|
337 | WBEM_FLAG_SEND_STATUS = 0x80,
|
---|
338 | WBEM_FLAG_ENSURE_LOCATABLE = 0x100,
|
---|
339 | WBEM_FLAG_DIRECT_READ = 0x200,
|
---|
340 | WBEM_MASK_RESERVED_FLAGS = 0x1f000,
|
---|
341 | WBEM_FLAG_USE_AMENDED_QUALIFIERS = 0x20000,
|
---|
342 | WBEM_FLAG_STRONG_VALIDATION = 0x100000
|
---|
343 | } WBEM_GENERIC_FLAG_TYPE;
|
---|
344 |
|
---|
345 | [
|
---|
346 | object,
|
---|
347 | restricted,
|
---|
348 | uuid(9556dc99-828c-11cf-a37e-00aa003240c7),
|
---|
349 | pointer_default(unique)
|
---|
350 | ]
|
---|
351 | interface IWbemServices : IUnknown
|
---|
352 | {
|
---|
353 | HRESULT OpenNamespace(
|
---|
354 | [in] const BSTR strNamespace,
|
---|
355 | [in] long lFlags,
|
---|
356 | [in] IWbemContext *pCtx,
|
---|
357 | [out] IWbemServices **ppWorkingNamespace,
|
---|
358 | [out] IWbemCallResult **ppResult);
|
---|
359 |
|
---|
360 | HRESULT CancelAsyncCall(
|
---|
361 | [in] IWbemObjectSink *pSink);
|
---|
362 |
|
---|
363 | HRESULT QueryObjectSink(
|
---|
364 | [in] long lFlags,
|
---|
365 | [out] IWbemObjectSink **ppResponseHandler);
|
---|
366 |
|
---|
367 | HRESULT GetObject(
|
---|
368 | [in] const BSTR strObjectPath,
|
---|
369 | [in] long lFlags,
|
---|
370 | [in] IWbemContext *pCtx,
|
---|
371 | [out] IWbemClassObject **ppObject,
|
---|
372 | [out] IWbemCallResult **ppCallResult);
|
---|
373 |
|
---|
374 | HRESULT GetObjectAsync(
|
---|
375 | [in] const BSTR strObjectPath,
|
---|
376 | [in] long lFlags,
|
---|
377 | [in] IWbemContext *pCtx,
|
---|
378 | [in] IWbemObjectSink *pResponseHandler);
|
---|
379 |
|
---|
380 | HRESULT PutClass(
|
---|
381 | [in] IWbemClassObject *pObject,
|
---|
382 | [in] long lFlags,
|
---|
383 | [in] IWbemContext *pCtx,
|
---|
384 | [out] IWbemCallResult **ppCallResult);
|
---|
385 |
|
---|
386 | HRESULT PutClassAsync(
|
---|
387 | [in] IWbemClassObject *pObject,
|
---|
388 | [in] long lFlags,
|
---|
389 | [in] IWbemContext *pCtx,
|
---|
390 | [in] IWbemObjectSink *pResponseHandler);
|
---|
391 |
|
---|
392 | HRESULT DeleteClass(
|
---|
393 | [in] const BSTR strClass,
|
---|
394 | [in] long lFlags,
|
---|
395 | [in] IWbemContext *pCtx,
|
---|
396 | [out] IWbemCallResult **ppCallResult);
|
---|
397 |
|
---|
398 | HRESULT DeleteClassAsync(
|
---|
399 | [in] const BSTR strClass,
|
---|
400 | [in] long lFlags,
|
---|
401 | [in] IWbemContext *pCtx,
|
---|
402 | [in] IWbemObjectSink *pResponseHandler);
|
---|
403 |
|
---|
404 | HRESULT CreateClassEnum(
|
---|
405 | [in] const BSTR strSuperclass,
|
---|
406 | [in] long lFlags,
|
---|
407 | [in] IWbemContext *pCtx,
|
---|
408 | [out] IEnumWbemClassObject **ppEnum);
|
---|
409 |
|
---|
410 | HRESULT CreateClassEnumAsync(
|
---|
411 | [in] const BSTR strSuperclass,
|
---|
412 | [in] long lFlags,
|
---|
413 | [in] IWbemContext *pCtx,
|
---|
414 | [in] IWbemObjectSink *pResponseHandler);
|
---|
415 |
|
---|
416 | HRESULT PutInstance(
|
---|
417 | [in] IWbemClassObject *pInst,
|
---|
418 | [in] long lFlags,
|
---|
419 | [in] IWbemContext *pCtx,
|
---|
420 | [out] IWbemCallResult **ppCallResult);
|
---|
421 |
|
---|
422 | HRESULT PutInstanceAsync(
|
---|
423 | [in] IWbemClassObject *pInst,
|
---|
424 | [in] long lFlags,
|
---|
425 | [in] IWbemContext *pCtx,
|
---|
426 | [in] IWbemObjectSink *pResponseHandler);
|
---|
427 |
|
---|
428 | HRESULT DeleteInstance(
|
---|
429 | [in] const BSTR strObjectPath,
|
---|
430 | [in] long lFlags,
|
---|
431 | [in] IWbemContext *pCtx,
|
---|
432 | [out] IWbemCallResult **ppCallResult);
|
---|
433 |
|
---|
434 | HRESULT DeleteInstanceAsync(
|
---|
435 | [in] const BSTR strObjectPath,
|
---|
436 | [in] long lFlags,
|
---|
437 | [in] IWbemContext *pCtx,
|
---|
438 | [in] IWbemObjectSink *pResponseHandler);
|
---|
439 |
|
---|
440 | HRESULT CreateInstanceEnum(
|
---|
441 | [in] const BSTR strFilter,
|
---|
442 | [in] long lFlags,
|
---|
443 | [in] IWbemContext *pCtx,
|
---|
444 | [out] IEnumWbemClassObject **ppEnum);
|
---|
445 |
|
---|
446 | HRESULT CreateInstanceEnumAsync(
|
---|
447 | [in] const BSTR strFilter,
|
---|
448 | [in] long lFlags,
|
---|
449 | [in] IWbemContext *pCtx,
|
---|
450 | [in] IWbemObjectSink *pResponseHandler);
|
---|
451 |
|
---|
452 | HRESULT ExecQuery(
|
---|
453 | [in] const BSTR strQueryLanguage,
|
---|
454 | [in] const BSTR strQuery,
|
---|
455 | [in] long lFlags,
|
---|
456 | [in] IWbemContext *pCtx,
|
---|
457 | [out] IEnumWbemClassObject **ppEnum);
|
---|
458 |
|
---|
459 | HRESULT ExecQueryAsync(
|
---|
460 | [in] const BSTR strQueryLanguage,
|
---|
461 | [in] const BSTR strQuery,
|
---|
462 | [in] long lFlags,
|
---|
463 | [in] IWbemContext *pCtx,
|
---|
464 | [in] IWbemObjectSink *pResponseHandler);
|
---|
465 |
|
---|
466 | HRESULT ExecNotificationQuery(
|
---|
467 | [in] const BSTR strQueryLanguage,
|
---|
468 | [in] const BSTR strQuery,
|
---|
469 | [in] long lFlags,
|
---|
470 | [in] IWbemContext *pCtx,
|
---|
471 | [out] IEnumWbemClassObject **ppEnum);
|
---|
472 |
|
---|
473 | HRESULT ExecNotificationQueryAsync(
|
---|
474 | [in] const BSTR strQueryLanguage,
|
---|
475 | [in] const BSTR strQuery,
|
---|
476 | [in] long lFlags,
|
---|
477 | [in] IWbemContext *pCtx,
|
---|
478 | [in] IWbemObjectSink *pResponseHandler);
|
---|
479 |
|
---|
480 | HRESULT ExecMethod(
|
---|
481 | [in] const BSTR strObjectPath,
|
---|
482 | [in] const BSTR strMethodName,
|
---|
483 | [in] long lFlags,
|
---|
484 | [in] IWbemContext *pCtx,
|
---|
485 | [in] IWbemClassObject *pInParams,
|
---|
486 | [out] IWbemClassObject **ppOutParams,
|
---|
487 | [out] IWbemCallResult **ppCallResult);
|
---|
488 |
|
---|
489 | HRESULT ExecMethodAsync(
|
---|
490 | [in] const BSTR strObjectPath,
|
---|
491 | [in] const BSTR strMethodName,
|
---|
492 | [in] long lFlags,
|
---|
493 | [in] IWbemContext *pCtx,
|
---|
494 | [in] IWbemClassObject *pInParams,
|
---|
495 | [in] IWbemObjectSink *pResponseHandler);
|
---|
496 | };
|
---|
497 |
|
---|
498 | [
|
---|
499 | object,
|
---|
500 | restricted,
|
---|
501 | uuid(027947e1-d731-11ce-a357-000000000001)
|
---|
502 | ]
|
---|
503 | interface IEnumWbemClassObject : IUnknown
|
---|
504 | {
|
---|
505 | HRESULT Reset();
|
---|
506 |
|
---|
507 | HRESULT Next(
|
---|
508 | [in] long lTimeout,
|
---|
509 | [in] ULONG uCount,
|
---|
510 | [out, size_is(uCount), length_is(*puReturned)] IWbemClassObject **apObjects,
|
---|
511 | [out] ULONG *puReturned);
|
---|
512 |
|
---|
513 | HRESULT NextAsync(
|
---|
514 | [in] ULONG uCount,
|
---|
515 | [in] IWbemObjectSink *pSink);
|
---|
516 |
|
---|
517 | HRESULT Clone(
|
---|
518 | [out] IEnumWbemClassObject **ppEnum);
|
---|
519 |
|
---|
520 | HRESULT Skip(
|
---|
521 | [in] long lTimeout,
|
---|
522 | [in] ULONG nCount);
|
---|
523 | };
|
---|
524 |
|
---|
525 | [
|
---|
526 | object,
|
---|
527 | restricted,
|
---|
528 | local,
|
---|
529 | uuid(dc12a681-737f-11cf-884d-00aa004b2e24)
|
---|
530 | ]
|
---|
531 | interface IWbemClassObject : IUnknown
|
---|
532 | {
|
---|
533 | HRESULT GetQualifierSet(
|
---|
534 | [out] IWbemQualifierSet **ppQualSet);
|
---|
535 |
|
---|
536 | HRESULT Get(
|
---|
537 | [in,string] LPCWSTR wszName,
|
---|
538 | [in] long lFlags,
|
---|
539 | [out] VARIANT *pVal,
|
---|
540 | [out] CIMTYPE *pType,
|
---|
541 | [out] long *plFlavor);
|
---|
542 |
|
---|
543 | HRESULT Put(
|
---|
544 | [in,string] LPCWSTR wszName,
|
---|
545 | [in] long lFlags,
|
---|
546 | [in] VARIANT *pVal,
|
---|
547 | [in] CIMTYPE Type);
|
---|
548 |
|
---|
549 | HRESULT Delete(
|
---|
550 | [in,string] LPCWSTR wszName);
|
---|
551 |
|
---|
552 | HRESULT GetNames(
|
---|
553 | [in,string] LPCWSTR wszQualifierName,
|
---|
554 | [in] long lFlags,
|
---|
555 | [in] VARIANT *pQualifierVal,
|
---|
556 | [out] SAFEARRAY **pNames);
|
---|
557 |
|
---|
558 | HRESULT BeginEnumeration(
|
---|
559 | [in] long lEnumFlags);
|
---|
560 |
|
---|
561 | HRESULT Next(
|
---|
562 | [in] long lFlags,
|
---|
563 | [out] BSTR *strName,
|
---|
564 | [out] VARIANT *pVal,
|
---|
565 | [out] CIMTYPE *pType,
|
---|
566 | [out] long *plFlavor);
|
---|
567 |
|
---|
568 | HRESULT EndEnumeration();
|
---|
569 |
|
---|
570 | HRESULT GetPropertyQualifierSet(
|
---|
571 | [in,string] LPCWSTR wszProperty,
|
---|
572 | [out] IWbemQualifierSet **ppQualSet);
|
---|
573 |
|
---|
574 | HRESULT Clone(
|
---|
575 | [out] IWbemClassObject **ppCopy);
|
---|
576 |
|
---|
577 | HRESULT GetObjectText(
|
---|
578 | [in] long lFlags,
|
---|
579 | [out] BSTR *pstrObjectText);
|
---|
580 |
|
---|
581 | HRESULT SpawnDerivedClass(
|
---|
582 | [in] long lFlags,
|
---|
583 | [out] IWbemClassObject **ppNewClass);
|
---|
584 |
|
---|
585 | HRESULT SpawnInstance(
|
---|
586 | [in] long lFlags,
|
---|
587 | [out] IWbemClassObject **ppNewInstance);
|
---|
588 |
|
---|
589 | HRESULT CompareTo(
|
---|
590 | [in] long lFlags,
|
---|
591 | [in] IWbemClassObject *pCompareTo);
|
---|
592 |
|
---|
593 | HRESULT GetPropertyOrigin(
|
---|
594 | [in,string] LPCWSTR wszName,
|
---|
595 | [out] BSTR *pstrClassName);
|
---|
596 |
|
---|
597 | HRESULT InheritsFrom(
|
---|
598 | [in] LPCWSTR strAncestor);
|
---|
599 |
|
---|
600 | HRESULT GetMethod(
|
---|
601 | [in,string] LPCWSTR wszName,
|
---|
602 | [in] long lFlags,
|
---|
603 | [out] IWbemClassObject **ppInSignature,
|
---|
604 | [out] IWbemClassObject **ppOutSignature);
|
---|
605 |
|
---|
606 | HRESULT PutMethod(
|
---|
607 | [in,string] LPCWSTR wszName,
|
---|
608 | [in] long lFlags,
|
---|
609 | [in] IWbemClassObject *pInSignature,
|
---|
610 | [in] IWbemClassObject *pOutSignature);
|
---|
611 |
|
---|
612 | HRESULT DeleteMethod(
|
---|
613 | [in,string] LPCWSTR wszName);
|
---|
614 |
|
---|
615 | HRESULT BeginMethodEnumeration(
|
---|
616 | [in] long lEnumFlags);
|
---|
617 |
|
---|
618 | HRESULT NextMethod(
|
---|
619 | [in] long lFlags,
|
---|
620 | [out] BSTR *pstrName,
|
---|
621 | [out] IWbemClassObject **ppInSignature,
|
---|
622 | [out] IWbemClassObject **ppOutSignature);
|
---|
623 |
|
---|
624 | HRESULT EndMethodEnumeration();
|
---|
625 |
|
---|
626 | HRESULT GetMethodQualifierSet(
|
---|
627 | [in,string] LPCWSTR wszMethod,
|
---|
628 | [out] IWbemQualifierSet **ppQualSet);
|
---|
629 |
|
---|
630 | HRESULT GetMethodOrigin(
|
---|
631 | [in,string] LPCWSTR wszMethodName,
|
---|
632 | [out] BSTR *pstrClassName);
|
---|
633 | }
|
---|
634 |
|
---|
635 | [
|
---|
636 | object,
|
---|
637 | restricted,
|
---|
638 | local,
|
---|
639 | uuid(dc12a680-737f-11cf-884d-00aa004b2e24)
|
---|
640 | ]
|
---|
641 | interface IWbemQualifierSet : IUnknown
|
---|
642 | {
|
---|
643 | HRESULT Get(
|
---|
644 | [in,string] LPCWSTR wszName,
|
---|
645 | [in] long lFlags,
|
---|
646 | [out] VARIANT *pVal,
|
---|
647 | [out] long *plFlavor);
|
---|
648 |
|
---|
649 | HRESULT Put(
|
---|
650 | [in,string] LPCWSTR wszName,
|
---|
651 | [in] VARIANT *pVal,
|
---|
652 | [in] long lFlavor);
|
---|
653 |
|
---|
654 | HRESULT Delete(
|
---|
655 | [in,string] LPCWSTR wszName);
|
---|
656 |
|
---|
657 | HRESULT GetNames(
|
---|
658 | [in] long lFlags,
|
---|
659 | [out] SAFEARRAY **pNames);
|
---|
660 |
|
---|
661 | HRESULT BeginEnumeration(
|
---|
662 | [in] long lFlags);
|
---|
663 |
|
---|
664 | HRESULT Next(
|
---|
665 | [in] long lFlags,
|
---|
666 | [out] BSTR *pstrName,
|
---|
667 | [out] VARIANT *pVal,
|
---|
668 | [out] long *plFlavor);
|
---|
669 |
|
---|
670 | HRESULT EndEnumeration();
|
---|
671 | };
|
---|