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 | * Sun 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, Sun 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 "objidl.idl";
|
---|
32 |
|
---|
33 | interface IWbemContext;
|
---|
34 | interface IWbemServices;
|
---|
35 | interface IWbemStatusCodeText;
|
---|
36 |
|
---|
37 | typedef [v1_enum] enum tag_WBEMSTATUS
|
---|
38 | {
|
---|
39 | WBEM_NO_ERROR = 0,
|
---|
40 | WBEM_S_NO_ERROR = 0,
|
---|
41 | WBEM_S_SAME = 0,
|
---|
42 | WBEM_S_FALSE = 1,
|
---|
43 | WBEM_S_ALREADY_EXISTS = 0x40001,
|
---|
44 | WBEM_S_RESET_TO_DEFAULT = 0x40002,
|
---|
45 | WBEM_S_DIFFERENT = 0x40003,
|
---|
46 | WBEM_S_TIMEDOUT = 0x40004,
|
---|
47 | WBEM_S_NO_MORE_DATA = 0x40005,
|
---|
48 | WBEM_S_OPERATION_CANCELLED = 0x40006,
|
---|
49 | WBEM_S_PENDING = 0x40007,
|
---|
50 | WBEM_S_DUPLICATE_OBJECTS = 0x40008,
|
---|
51 | WBEM_S_ACCESS_DENIED = 0x40009,
|
---|
52 | WBEM_S_PARTIAL_RESULTS = 0x40010,
|
---|
53 | WBEM_S_SOURCE_NOT_AVAILABLE = 0x40017,
|
---|
54 | WBEM_E_FAILED = 0x80041001,
|
---|
55 | WBEM_E_NOT_FOUND = 0x80041002,
|
---|
56 | WBEM_E_ACCESS_DENIED = 0x80041003,
|
---|
57 | WBEM_E_PROVIDER_FAILURE = 0x80041004,
|
---|
58 | WBEM_E_TYPE_MISMATCH = 0x80041005,
|
---|
59 | WBEM_E_OUT_OF_MEMORY = 0x80041006,
|
---|
60 | WBEM_E_INVALID_CONTEXT = 0x80041007,
|
---|
61 | WBEM_E_INVALID_PARAMETER = 0x80041008,
|
---|
62 | WBEM_E_NOT_AVAILABLE = 0x80041009,
|
---|
63 | WBEM_E_CRITICAL_ERROR = 0x8004100a,
|
---|
64 | WBEM_E_INVALID_STREAM = 0x8004100b,
|
---|
65 | WBEM_E_NOT_SUPPORTED = 0x8004100c,
|
---|
66 | WBEM_E_INVALID_SUPERCLASS = 0x8004100d,
|
---|
67 | WBEM_E_INVALID_NAMESPACE = 0x8004100e,
|
---|
68 | WBEM_E_INVALID_OBJECT = 0x8004100f,
|
---|
69 | WBEM_E_INVALID_CLASS = 0x80041010,
|
---|
70 | WBEM_E_PROVIDER_NOT_FOUND = 0x80041011,
|
---|
71 | WBEM_E_INVALID_PROVIDER_REGISTRATION = 0x80041012,
|
---|
72 | WBEM_E_PROVIDER_LOAD_FAILURE = 0x80041013,
|
---|
73 | WBEM_E_INITIALIZATION_FAILURE = 0x80041014,
|
---|
74 | WBEM_E_TRANSPORT_FAILURE = 0x80041015,
|
---|
75 | WBEM_E_INVALID_OPERATION = 0x80041016,
|
---|
76 | WBEM_E_INVALID_QUERY = 0x80041017,
|
---|
77 | WBEM_E_INVALID_QUERY_TYPE = 0x80041018,
|
---|
78 | WBEM_E_ALREADY_EXISTS = 0x80041019,
|
---|
79 | WBEM_E_OVERRIDE_NOT_ALLOWED = 0x8004101a,
|
---|
80 | WBEM_E_PROPAGATED_QUALIFIER = 0x8004101b,
|
---|
81 | WBEM_E_PROPAGATED_PROPERTY = 0x8004101c,
|
---|
82 | WBEM_E_UNEXPECTED = 0x8004101d,
|
---|
83 | WBEM_E_ILLEGAL_OPERATION = 0x8004101e,
|
---|
84 | WBEM_E_CANNOT_BE_KEY = 0x8004101f,
|
---|
85 | WBEM_E_INCOMPLETE_CLASS = 0x80041020,
|
---|
86 | WBEM_E_INVALID_SYNTAX = 0x80041021,
|
---|
87 | WBEM_E_NONDECORATED_OBJECT = 0x80041022,
|
---|
88 | WBEM_E_READ_ONLY = 0x80041023,
|
---|
89 | WBEM_E_PROVIDER_NOT_CAPABLE = 0x80041024,
|
---|
90 | WBEM_E_CLASS_HAS_CHILDREN = 0x80041025,
|
---|
91 | WBEM_E_CLASS_HAS_INSTANCES = 0x80041026,
|
---|
92 | WBEM_E_QUERY_NOT_IMPLEMENTED = 0x80041027,
|
---|
93 | WBEM_E_ILLEGAL_NULL = 0x80041028,
|
---|
94 | WBEM_E_INVALID_QUALIFIER_TYPE = 0x80041029,
|
---|
95 | WBEM_E_INVALID_PROPERTY_TYPE = 0x8004102a,
|
---|
96 | WBEM_E_VALUE_OUT_OF_RANGE = 0x8004102b,
|
---|
97 | WBEM_E_CANNOT_BE_SINGLETON = 0x8004102c,
|
---|
98 | WBEM_E_INVALID_CIM_TYPE = 0x8004102d,
|
---|
99 | WBEM_E_INVALID_METHOD = 0x8004102e,
|
---|
100 | WBEM_E_INVALID_METHOD_PARAMETERS = 0x8004102f,
|
---|
101 | WBEM_E_SYSTEM_PROPERTY = 0x80041030,
|
---|
102 | WBEM_E_INVALID_PROPERTY = 0x80041031,
|
---|
103 | WBEM_E_CALL_CANCELLED = 0x80041032,
|
---|
104 | WBEM_E_SHUTTING_DOWN = 0x80041033,
|
---|
105 | WBEM_E_PROPAGATED_METHOD = 0x80041034,
|
---|
106 | WBEM_E_UNSUPPORTED_PARAMETER = 0x80041035,
|
---|
107 | WBEM_E_MISSING_PARAMETER_ID = 0x80041036,
|
---|
108 | WBEM_E_INVALID_PARAMETER_ID = 0x80041037,
|
---|
109 | WBEM_E_NONCONSECUTIVE_PARAMETER_IDS = 0x80041038,
|
---|
110 | WBEM_E_PARAMETER_ID_ON_RETVAL = 0x80041039,
|
---|
111 | WBEM_E_INVALID_OBJECT_PATH = 0x8004103a,
|
---|
112 | WBEM_E_OUT_OF_DISK_SPACE = 0x8004103b,
|
---|
113 | WBEM_E_BUFFER_TOO_SMALL = 0x8004103c,
|
---|
114 | WBEM_E_UNSUPPORTED_PUT_EXTENSION = 0x8004103d,
|
---|
115 | WBEM_E_UNKNOWN_OBJECT_TYPE = 0x8004103e,
|
---|
116 | WBEM_E_UNKNOWN_PACKET_TYPE = 0x8004103f,
|
---|
117 | WBEM_E_MARSHAL_VERSION_MISMATCH = 0x80041040,
|
---|
118 | WBEM_E_MARSHAL_INVALID_SIGNATURE = 0x80041041,
|
---|
119 | WBEM_E_INVALID_QUALIFIER = 0x80041042,
|
---|
120 | WBEM_E_INVALID_DUPLICATE_PARAMETER = 0x80041043,
|
---|
121 | WBEM_E_TOO_MUCH_DATA = 0x80041044,
|
---|
122 | WBEM_E_SERVER_TOO_BUSY = 0x80041045,
|
---|
123 | WBEM_E_INVALID_FLAVOR = 0x80041046,
|
---|
124 | WBEM_E_CIRCULAR_REFERENCE = 0x80041047,
|
---|
125 | WBEM_E_UNSUPPORTED_CLASS_UPDATE = 0x80041048,
|
---|
126 | WBEM_E_CANNOT_CHANGE_KEY_INHERITANCE = 0x80041049,
|
---|
127 | WBEM_E_CANNOT_CHANGE_INDEX_INHERITANCE = 0x80041050,
|
---|
128 | WBEM_E_TOO_MANY_PROPERTIES = 0x80041051,
|
---|
129 | WBEM_E_UPDATE_TYPE_MISMATCH = 0x80041052,
|
---|
130 | WBEM_E_UPDATE_OVERRIDE_NOT_ALLOWED = 0x80041053,
|
---|
131 | WBEM_E_UPDATE_PROPAGATED_METHOD = 0x80041054,
|
---|
132 | WBEM_E_METHOD_NOT_IMPLEMENTED = 0x80041055,
|
---|
133 | WBEM_E_METHOD_DISABLED = 0x80041056,
|
---|
134 | WBEM_E_REFRESHER_BUSY = 0x80041057,
|
---|
135 | WBEM_E_UNPARSABLE_QUERY = 0x80041058,
|
---|
136 | WBEM_E_NOT_EVENT_CLASS = 0x80041059,
|
---|
137 | WBEM_E_MISSING_GROUP_WITHIN = 0x8004105a,
|
---|
138 | WBEM_E_MISSING_AGGREGATION_LIST = 0x8004105b,
|
---|
139 | WBEM_E_PROPERTY_NOT_AN_OBJECT = 0x8004105c,
|
---|
140 | WBEM_E_AGGREGATING_BY_OBJECT = 0x8004105d,
|
---|
141 | WBEM_E_UNINTERPRETABLE_PROVIDER_QUERY = 0x8004105f,
|
---|
142 | WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING = 0x80041060,
|
---|
143 | WBEM_E_QUEUE_OVERFLOW = 0x80041061,
|
---|
144 | WBEM_E_PRIVILEGE_NOT_HELD = 0x80041062,
|
---|
145 | WBEM_E_INVALID_OPERATOR = 0x80041063,
|
---|
146 | WBEM_E_LOCAL_CREDENTIALS = 0x80041064,
|
---|
147 | WBEM_E_CANNOT_BE_ABSTRACT = 0x80041065,
|
---|
148 | WBEM_E_AMENDED_OBJECT = 0x80041066,
|
---|
149 | WBEM_E_CLIENT_TOO_SLOW = 0x80041067,
|
---|
150 | WBEM_E_NULL_SECURITY_DESCRIPTOR = 0x80041068,
|
---|
151 | WBEM_E_TIMED_OUT = 0x80041069,
|
---|
152 | WBEM_E_INVALID_ASSOCIATION = 0x8004106a,
|
---|
153 | WBEM_E_AMBIGUOUS_OPERATION = 0x8004106b,
|
---|
154 | WBEM_E_QUOTA_VIOLATION = 0x8004106c,
|
---|
155 | WBEM_E_RESERVED_001 = 0x8004106d,
|
---|
156 | WBEM_E_RESERVED_002 = 0x8004106e,
|
---|
157 | WBEM_E_UNSUPPORTED_LOCALE = 0x8004106f,
|
---|
158 | WBEM_E_HANDLE_OUT_OF_DATE = 0x80041070,
|
---|
159 | WBEM_E_CONNECTION_FAILED = 0x80041071,
|
---|
160 | WBEM_E_INVALID_HANDLE_REQUEST = 0x80041072,
|
---|
161 | WBEM_E_PROPERTY_NAME_TOO_WIDE = 0x80041073,
|
---|
162 | WBEM_E_CLASS_NAME_TOO_WIDE = 0x80041074,
|
---|
163 | WBEM_E_METHOD_NAME_TOO_WIDE = 0x80041075,
|
---|
164 | WBEM_E_QUALIFIER_NAME_TOO_WIDE = 0x80041076,
|
---|
165 | WBEM_E_RERUN_COMMAND = 0x80041077,
|
---|
166 | WBEM_E_DATABASE_VER_MISMATCH = 0x80041078,
|
---|
167 | WBEM_E_VETO_DELETE = 0x80041079,
|
---|
168 | WBEM_E_VETO_PUT = 0x8004107a,
|
---|
169 | WBEM_E_INVALID_LOCALE = 0x80041080,
|
---|
170 | WBEM_E_PROVIDER_SUSPENDED = 0x80041081,
|
---|
171 | WBEM_E_SYNCHRONIZATION_REQUIRED = 0x80041082,
|
---|
172 | WBEM_E_NO_SCHEMA = 0x80041083,
|
---|
173 | WBEM_E_PROVIDER_ALREADY_REGISTERED = 0x80041084,
|
---|
174 | WBEM_E_PROVIDER_NOT_REGISTERED = 0x80041085,
|
---|
175 | WBEM_E_FATAL_TRANSPORT_ERROR = 0x80041086,
|
---|
176 | WBEM_E_ENCRYPTED_CONNECTION_REQUIRED = 0x80041087,
|
---|
177 | WBEM_E_PROVIDER_TIMED_OUT = 0x80041088,
|
---|
178 | WBEM_E_NO_KEY = 0x80041089,
|
---|
179 | WBEM_E_PROVIDER_DISABLED = 0x8004108a
|
---|
180 | } WBEMSTATUS;
|
---|
181 |
|
---|
182 | [
|
---|
183 | object,
|
---|
184 | restricted,
|
---|
185 | local,
|
---|
186 | uuid(dc12a687-737f-11cf-884d-00aa004b2e24),
|
---|
187 | pointer_default(unique)
|
---|
188 | ]
|
---|
189 | interface IWbemLocator : IUnknown
|
---|
190 | {
|
---|
191 | HRESULT ConnectServer(
|
---|
192 | [in] const BSTR strNetworkResource,
|
---|
193 | [in] const BSTR strUser,
|
---|
194 | [in] const BSTR strPassword,
|
---|
195 | [in] const BSTR strLocale,
|
---|
196 | [in] LONG lSecurityFlags,
|
---|
197 | [in] const BSTR strAuthority,
|
---|
198 | [in] IWbemContext *pCtx,
|
---|
199 | [out] IWbemServices **ppNamespace);
|
---|
200 | };
|
---|
201 |
|
---|
202 | [
|
---|
203 | object,
|
---|
204 | local,
|
---|
205 | uuid(eb87e1bc-3233-11d2-aec9-00c04fb68820)
|
---|
206 | ]
|
---|
207 | interface IWbemStatusCodeText : IUnknown
|
---|
208 | {
|
---|
209 | HRESULT GetErrorCodeText(
|
---|
210 | [in] HRESULT hRes,
|
---|
211 | [in] LCID LocaleId,
|
---|
212 | [in] LONG lFlags,
|
---|
213 | [out] BSTR *MessageText);
|
---|
214 |
|
---|
215 | HRESULT GetFacilityCodeText(
|
---|
216 | [in] HRESULT hRes,
|
---|
217 | [in] LCID LocaleId,
|
---|
218 | [in] LONG lFlags,
|
---|
219 | [out] BSTR *MessageText);
|
---|
220 | };
|
---|