Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwbemcli.idl
Go to the documentation of this file.
00001 /* 00002 * Copyright 2009 Hans Leidekker for CodeWeavers 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00017 */ 00018 00019 cpp_quote("DEFINE_GUID(CLSID_WbemLocator, 0x4590f811,0x1d3A,0x11d0,0x89,0x1f,0x00,0xaa,0x00,0x4b,0x2e,0x24);") 00020 cpp_quote("DEFINE_GUID(CLSID_WbemStatusCode, 0xeb87e1bd,0x3233,0x11d2,0xae,0xc9,0x00,0xc0,0x4f,0xb6,0x88,0x20);") 00021 00022 import "objidl.idl"; 00023 00024 interface IWbemContext; 00025 interface IWbemServices; 00026 interface IWbemStatusCodeText; 00027 interface IWbemCallResult; 00028 interface IWbemObjectSink; 00029 interface IWbemClassObject; 00030 interface IEnumWbemClassObject; 00031 00032 typedef [v1_enum] enum tag_WBEMSTATUS 00033 { 00034 WBEM_NO_ERROR = 0, 00035 WBEM_S_NO_ERROR = 0, 00036 WBEM_S_SAME = 0, 00037 WBEM_S_FALSE = 1, 00038 WBEM_S_ALREADY_EXISTS = 0x40001, 00039 WBEM_S_RESET_TO_DEFAULT = 0x40002, 00040 WBEM_S_DIFFERENT = 0x40003, 00041 WBEM_S_TIMEDOUT = 0x40004, 00042 WBEM_S_NO_MORE_DATA = 0x40005, 00043 WBEM_S_OPERATION_CANCELLED = 0x40006, 00044 WBEM_S_PENDING = 0x40007, 00045 WBEM_S_DUPLICATE_OBJECTS = 0x40008, 00046 WBEM_S_ACCESS_DENIED = 0x40009, 00047 WBEM_S_PARTIAL_RESULTS = 0x40010, 00048 WBEM_S_SOURCE_NOT_AVAILABLE = 0x40017, 00049 WBEM_E_FAILED = 0x80041001, 00050 WBEM_E_NOT_FOUND = 0x80041002, 00051 WBEM_E_ACCESS_DENIED = 0x80041003, 00052 WBEM_E_PROVIDER_FAILURE = 0x80041004, 00053 WBEM_E_TYPE_MISMATCH = 0x80041005, 00054 WBEM_E_OUT_OF_MEMORY = 0x80041006, 00055 WBEM_E_INVALID_CONTEXT = 0x80041007, 00056 WBEM_E_INVALID_PARAMETER = 0x80041008, 00057 WBEM_E_NOT_AVAILABLE = 0x80041009, 00058 WBEM_E_CRITICAL_ERROR = 0x8004100a, 00059 WBEM_E_INVALID_STREAM = 0x8004100b, 00060 WBEM_E_NOT_SUPPORTED = 0x8004100c, 00061 WBEM_E_INVALID_SUPERCLASS = 0x8004100d, 00062 WBEM_E_INVALID_NAMESPACE = 0x8004100e, 00063 WBEM_E_INVALID_OBJECT = 0x8004100f, 00064 WBEM_E_INVALID_CLASS = 0x80041010, 00065 WBEM_E_PROVIDER_NOT_FOUND = 0x80041011, 00066 WBEM_E_INVALID_PROVIDER_REGISTRATION = 0x80041012, 00067 WBEM_E_PROVIDER_LOAD_FAILURE = 0x80041013, 00068 WBEM_E_INITIALIZATION_FAILURE = 0x80041014, 00069 WBEM_E_TRANSPORT_FAILURE = 0x80041015, 00070 WBEM_E_INVALID_OPERATION = 0x80041016, 00071 WBEM_E_INVALID_QUERY = 0x80041017, 00072 WBEM_E_INVALID_QUERY_TYPE = 0x80041018, 00073 WBEM_E_ALREADY_EXISTS = 0x80041019, 00074 WBEM_E_OVERRIDE_NOT_ALLOWED = 0x8004101a, 00075 WBEM_E_PROPAGATED_QUALIFIER = 0x8004101b, 00076 WBEM_E_PROPAGATED_PROPERTY = 0x8004101c, 00077 WBEM_E_UNEXPECTED = 0x8004101d, 00078 WBEM_E_ILLEGAL_OPERATION = 0x8004101e, 00079 WBEM_E_CANNOT_BE_KEY = 0x8004101f, 00080 WBEM_E_INCOMPLETE_CLASS = 0x80041020, 00081 WBEM_E_INVALID_SYNTAX = 0x80041021, 00082 WBEM_E_NONDECORATED_OBJECT = 0x80041022, 00083 WBEM_E_READ_ONLY = 0x80041023, 00084 WBEM_E_PROVIDER_NOT_CAPABLE = 0x80041024, 00085 WBEM_E_CLASS_HAS_CHILDREN = 0x80041025, 00086 WBEM_E_CLASS_HAS_INSTANCES = 0x80041026, 00087 WBEM_E_QUERY_NOT_IMPLEMENTED = 0x80041027, 00088 WBEM_E_ILLEGAL_NULL = 0x80041028, 00089 WBEM_E_INVALID_QUALIFIER_TYPE = 0x80041029, 00090 WBEM_E_INVALID_PROPERTY_TYPE = 0x8004102a, 00091 WBEM_E_VALUE_OUT_OF_RANGE = 0x8004102b, 00092 WBEM_E_CANNOT_BE_SINGLETON = 0x8004102c, 00093 WBEM_E_INVALID_CIM_TYPE = 0x8004102d, 00094 WBEM_E_INVALID_METHOD = 0x8004102e, 00095 WBEM_E_INVALID_METHOD_PARAMETERS = 0x8004102f, 00096 WBEM_E_SYSTEM_PROPERTY = 0x80041030, 00097 WBEM_E_INVALID_PROPERTY = 0x80041031, 00098 WBEM_E_CALL_CANCELLED = 0x80041032, 00099 WBEM_E_SHUTTING_DOWN = 0x80041033, 00100 WBEM_E_PROPAGATED_METHOD = 0x80041034, 00101 WBEM_E_UNSUPPORTED_PARAMETER = 0x80041035, 00102 WBEM_E_MISSING_PARAMETER_ID = 0x80041036, 00103 WBEM_E_INVALID_PARAMETER_ID = 0x80041037, 00104 WBEM_E_NONCONSECUTIVE_PARAMETER_IDS = 0x80041038, 00105 WBEM_E_PARAMETER_ID_ON_RETVAL = 0x80041039, 00106 WBEM_E_INVALID_OBJECT_PATH = 0x8004103a, 00107 WBEM_E_OUT_OF_DISK_SPACE = 0x8004103b, 00108 WBEM_E_BUFFER_TOO_SMALL = 0x8004103c, 00109 WBEM_E_UNSUPPORTED_PUT_EXTENSION = 0x8004103d, 00110 WBEM_E_UNKNOWN_OBJECT_TYPE = 0x8004103e, 00111 WBEM_E_UNKNOWN_PACKET_TYPE = 0x8004103f, 00112 WBEM_E_MARSHAL_VERSION_MISMATCH = 0x80041040, 00113 WBEM_E_MARSHAL_INVALID_SIGNATURE = 0x80041041, 00114 WBEM_E_INVALID_QUALIFIER = 0x80041042, 00115 WBEM_E_INVALID_DUPLICATE_PARAMETER = 0x80041043, 00116 WBEM_E_TOO_MUCH_DATA = 0x80041044, 00117 WBEM_E_SERVER_TOO_BUSY = 0x80041045, 00118 WBEM_E_INVALID_FLAVOR = 0x80041046, 00119 WBEM_E_CIRCULAR_REFERENCE = 0x80041047, 00120 WBEM_E_UNSUPPORTED_CLASS_UPDATE = 0x80041048, 00121 WBEM_E_CANNOT_CHANGE_KEY_INHERITANCE = 0x80041049, 00122 WBEM_E_CANNOT_CHANGE_INDEX_INHERITANCE = 0x80041050, 00123 WBEM_E_TOO_MANY_PROPERTIES = 0x80041051, 00124 WBEM_E_UPDATE_TYPE_MISMATCH = 0x80041052, 00125 WBEM_E_UPDATE_OVERRIDE_NOT_ALLOWED = 0x80041053, 00126 WBEM_E_UPDATE_PROPAGATED_METHOD = 0x80041054, 00127 WBEM_E_METHOD_NOT_IMPLEMENTED = 0x80041055, 00128 WBEM_E_METHOD_DISABLED = 0x80041056, 00129 WBEM_E_REFRESHER_BUSY = 0x80041057, 00130 WBEM_E_UNPARSABLE_QUERY = 0x80041058, 00131 WBEM_E_NOT_EVENT_CLASS = 0x80041059, 00132 WBEM_E_MISSING_GROUP_WITHIN = 0x8004105a, 00133 WBEM_E_MISSING_AGGREGATION_LIST = 0x8004105b, 00134 WBEM_E_PROPERTY_NOT_AN_OBJECT = 0x8004105c, 00135 WBEM_E_AGGREGATING_BY_OBJECT = 0x8004105d, 00136 WBEM_E_UNINTERPRETABLE_PROVIDER_QUERY = 0x8004105f, 00137 WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING = 0x80041060, 00138 WBEM_E_QUEUE_OVERFLOW = 0x80041061, 00139 WBEM_E_PRIVILEGE_NOT_HELD = 0x80041062, 00140 WBEM_E_INVALID_OPERATOR = 0x80041063, 00141 WBEM_E_LOCAL_CREDENTIALS = 0x80041064, 00142 WBEM_E_CANNOT_BE_ABSTRACT = 0x80041065, 00143 WBEM_E_AMENDED_OBJECT = 0x80041066, 00144 WBEM_E_CLIENT_TOO_SLOW = 0x80041067, 00145 WBEM_E_NULL_SECURITY_DESCRIPTOR = 0x80041068, 00146 WBEM_E_TIMED_OUT = 0x80041069, 00147 WBEM_E_INVALID_ASSOCIATION = 0x8004106a, 00148 WBEM_E_AMBIGUOUS_OPERATION = 0x8004106b, 00149 WBEM_E_QUOTA_VIOLATION = 0x8004106c, 00150 WBEM_E_RESERVED_001 = 0x8004106d, 00151 WBEM_E_RESERVED_002 = 0x8004106e, 00152 WBEM_E_UNSUPPORTED_LOCALE = 0x8004106f, 00153 WBEM_E_HANDLE_OUT_OF_DATE = 0x80041070, 00154 WBEM_E_CONNECTION_FAILED = 0x80041071, 00155 WBEM_E_INVALID_HANDLE_REQUEST = 0x80041072, 00156 WBEM_E_PROPERTY_NAME_TOO_WIDE = 0x80041073, 00157 WBEM_E_CLASS_NAME_TOO_WIDE = 0x80041074, 00158 WBEM_E_METHOD_NAME_TOO_WIDE = 0x80041075, 00159 WBEM_E_QUALIFIER_NAME_TOO_WIDE = 0x80041076, 00160 WBEM_E_RERUN_COMMAND = 0x80041077, 00161 WBEM_E_DATABASE_VER_MISMATCH = 0x80041078, 00162 WBEM_E_VETO_DELETE = 0x80041079, 00163 WBEM_E_VETO_PUT = 0x8004107a, 00164 WBEM_E_INVALID_LOCALE = 0x80041080, 00165 WBEM_E_PROVIDER_SUSPENDED = 0x80041081, 00166 WBEM_E_SYNCHRONIZATION_REQUIRED = 0x80041082, 00167 WBEM_E_NO_SCHEMA = 0x80041083, 00168 WBEM_E_PROVIDER_ALREADY_REGISTERED = 0x80041084, 00169 WBEM_E_PROVIDER_NOT_REGISTERED = 0x80041085, 00170 WBEM_E_FATAL_TRANSPORT_ERROR = 0x80041086, 00171 WBEM_E_ENCRYPTED_CONNECTION_REQUIRED = 0x80041087, 00172 WBEM_E_PROVIDER_TIMED_OUT = 0x80041088, 00173 WBEM_E_NO_KEY = 0x80041089, 00174 WBEM_E_PROVIDER_DISABLED = 0x8004108a 00175 } WBEMSTATUS; 00176 00177 [ 00178 object, 00179 restricted, 00180 local, 00181 uuid(dc12a687-737f-11cf-884d-00aa004b2e24), 00182 pointer_default(unique) 00183 ] 00184 interface IWbemLocator : IUnknown 00185 { 00186 HRESULT ConnectServer( 00187 [in] const BSTR strNetworkResource, 00188 [in] const BSTR strUser, 00189 [in] const BSTR strPassword, 00190 [in] const BSTR strLocale, 00191 [in] LONG lSecurityFlags, 00192 [in] const BSTR strAuthority, 00193 [in] IWbemContext *pCtx, 00194 [out] IWbemServices **ppNamespace); 00195 }; 00196 00197 [ 00198 object, 00199 local, 00200 uuid(eb87e1bc-3233-11d2-aec9-00c04fb68820) 00201 ] 00202 interface IWbemStatusCodeText : IUnknown 00203 { 00204 HRESULT GetErrorCodeText( 00205 [in] HRESULT hRes, 00206 [in] LCID LocaleId, 00207 [in] LONG lFlags, 00208 [out] BSTR *MessageText); 00209 00210 HRESULT GetFacilityCodeText( 00211 [in] HRESULT hRes, 00212 [in] LCID LocaleId, 00213 [in] LONG lFlags, 00214 [out] BSTR *MessageText); 00215 }; 00216 00217 [ 00218 object, 00219 restricted, 00220 uuid(9556dc99-828c-11cf-a37e-00aa003240c7), 00221 pointer_default(unique) 00222 ] 00223 interface IWbemServices : IUnknown 00224 { 00225 HRESULT OpenNamespace( 00226 [in] const BSTR strNamespace, 00227 [in] long lFlags, 00228 [in] IWbemContext *pCtx, 00229 [out] IWbemServices **ppWorkingNamespace, 00230 [out] IWbemCallResult **ppResult); 00231 00232 HRESULT CancelAsyncCall( 00233 [in] IWbemObjectSink *pSink); 00234 00235 HRESULT QueryObjectSink( 00236 [in] long lFlags, 00237 [out] IWbemObjectSink **ppResponseHandler); 00238 00239 HRESULT GetObject( 00240 [in] const BSTR strObjectPath, 00241 [in] long lFlags, 00242 [in] IWbemContext *pCtx, 00243 [out] IWbemClassObject **ppObject, 00244 [out] IWbemCallResult **ppCallResult); 00245 00246 HRESULT GetObjectAsync( 00247 [in] const BSTR strObjectPath, 00248 [in] long lFlags, 00249 [in] IWbemContext *pCtx, 00250 [in] IWbemObjectSink *pResponseHandler); 00251 00252 HRESULT PutClass( 00253 [in] IWbemClassObject *pObject, 00254 [in] long lFlags, 00255 [in] IWbemContext *pCtx, 00256 [out] IWbemCallResult **ppCallResult); 00257 00258 HRESULT PutClassAsync( 00259 [in] IWbemClassObject *pObject, 00260 [in] long lFlags, 00261 [in] IWbemContext *pCtx, 00262 [in] IWbemObjectSink *pResponseHandler); 00263 00264 HRESULT DeleteClass( 00265 [in] const BSTR strClass, 00266 [in] long lFlags, 00267 [in] IWbemContext *pCtx, 00268 [out] IWbemCallResult **ppCallResult); 00269 00270 HRESULT DeleteClassAsync( 00271 [in] const BSTR strClass, 00272 [in] long lFlags, 00273 [in] IWbemContext *pCtx, 00274 [in] IWbemObjectSink *pResponseHandler); 00275 00276 HRESULT CreateClassEnum( 00277 [in] const BSTR strSuperclass, 00278 [in] long lFlags, 00279 [in] IWbemContext *pCtx, 00280 [out] IEnumWbemClassObject **ppEnum); 00281 00282 HRESULT CreateClassEnumAsync( 00283 [in] const BSTR strSuperclass, 00284 [in] long lFlags, 00285 [in] IWbemContext *pCtx, 00286 [in] IWbemObjectSink *pResponseHandler); 00287 00288 HRESULT PutInstance( 00289 [in] IWbemClassObject *pInst, 00290 [in] long lFlags, 00291 [in] IWbemContext *pCtx, 00292 [out] IWbemCallResult **ppCallResult); 00293 00294 HRESULT PutInstanceAsync( 00295 [in] IWbemClassObject *pInst, 00296 [in] long lFlags, 00297 [in] IWbemContext *pCtx, 00298 [in] IWbemObjectSink *pResponseHandler); 00299 00300 HRESULT DeleteInstance( 00301 [in] const BSTR strObjectPath, 00302 [in] long lFlags, 00303 [in] IWbemContext *pCtx, 00304 [out] IWbemCallResult **ppCallResult); 00305 00306 HRESULT DeleteInstanceAsync( 00307 [in] const BSTR strObjectPath, 00308 [in] long lFlags, 00309 [in] IWbemContext *pCtx, 00310 [in] IWbemObjectSink *pResponseHandler); 00311 00312 HRESULT CreateInstanceEnum( 00313 [in] const BSTR strFilter, 00314 [in] long lFlags, 00315 [in] IWbemContext *pCtx, 00316 [out] IEnumWbemClassObject **ppEnum); 00317 00318 HRESULT CreateInstanceEnumAsync( 00319 [in] const BSTR strFilter, 00320 [in] long lFlags, 00321 [in] IWbemContext *pCtx, 00322 [in] IWbemObjectSink *pResponseHandler); 00323 00324 HRESULT ExecQuery( 00325 [in] const BSTR strQueryLanguage, 00326 [in] const BSTR strQuery, 00327 [in] long lFlags, 00328 [in] IWbemContext *pCtx, 00329 [out] IEnumWbemClassObject **ppEnum); 00330 00331 HRESULT ExecQueryAsync( 00332 [in] const BSTR strQueryLanguage, 00333 [in] const BSTR strQuery, 00334 [in] long lFlags, 00335 [in] IWbemContext *pCtx, 00336 [in] IWbemObjectSink *pResponseHandler); 00337 00338 HRESULT ExecNotificationQuery( 00339 [in] const BSTR strQueryLanguage, 00340 [in] const BSTR strQuery, 00341 [in] long lFlags, 00342 [in] IWbemContext *pCtx, 00343 [out] IEnumWbemClassObject **ppEnum); 00344 00345 HRESULT ExecNotificationQueryAsync( 00346 [in] const BSTR strQueryLanguage, 00347 [in] const BSTR strQuery, 00348 [in] long lFlags, 00349 [in] IWbemContext *pCtx, 00350 [in] IWbemObjectSink *pResponseHandler); 00351 00352 HRESULT ExecMethod( 00353 [in] const BSTR strObjectPath, 00354 [in] const BSTR strMethodName, 00355 [in] long lFlags, 00356 [in] IWbemContext *pCtx, 00357 [in] IWbemClassObject *pInParams, 00358 [out] IWbemClassObject **ppOutParams, 00359 [out] IWbemCallResult **ppCallResult); 00360 00361 HRESULT ExecMethodAsync( 00362 [in] const BSTR strObjectPath, 00363 [in] const BSTR strMethodName, 00364 [in] long lFlags, 00365 [in] IWbemContext *pCtx, 00366 [in] IWbemClassObject *pInParams, 00367 [in] IWbemObjectSink *pResponseHandler); 00368 }; 00369 00370 [ 00371 object, 00372 restricted, 00373 uuid(027947e1-d731-11ce-a357-000000000001) 00374 ] 00375 interface IEnumWbemClassObject : IUnknown 00376 { 00377 HRESULT Reset(); 00378 00379 HRESULT Next( 00380 [in] long lTimeout, 00381 [in] ULONG uCount, 00382 [out, size_is(uCount), length_is(*puReturned)] IWbemClassObject **apObjects, 00383 [out] ULONG *puReturned); 00384 00385 HRESULT NextAsync( 00386 [in] ULONG uCount, 00387 [in] IWbemObjectSink *pSink); 00388 00389 HRESULT Clone( 00390 [out] IEnumWbemClassObject **ppEnum); 00391 00392 HRESULT Skip( 00393 [in] long lTimeout, 00394 [in] ULONG nCount); 00395 }; Generated on Sun May 27 2012 04:32:34 for ReactOS by
1.7.6.1
|