12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765 |
- cpp_quote("/*******************************************************************************/" )
- cpp_quote("/* */" )
- cpp_quote("/* Copyright © Microsoft Corporation. All rights reserved. */" )
- cpp_quote("/* */" )
- /* WBEMDISP.IDL */
- /* */
- cpp_quote("/* WBEM IDispatch Compatible Access for Automation */" )
- cpp_quote("/* */" )
- cpp_quote("/*******************************************************************************/" )
- import "dispex.idl";
- [
- uuid(565783C6-CB41-11d1-8B02-00600806D9B6),
- lcid(0x00),
- version(1.2),
- helpstring("Microsoft WMI Scripting V1.2 Library")
- ]
- library WbemScripting
- {
- importlib("stdole2.tlb");
- interface ISWbemServices;
- interface ISWbemLocator;
- interface ISWbemObject;
- interface ISWbemObjectSet;
- interface ISWbemNamedValue;
- interface ISWbemNamedValueSet;
- interface ISWbemQualifier;
- interface ISWbemQualifierSet;
- interface ISWbemProperty;
- interface ISWbemPropertySet;
- interface ISWbemMethod;
- interface ISWbemMethodSet;
- interface ISWbemEventSource;
- interface ISWbemObjectPath;
- interface ISWbemLastError;
- interface ISWbemSinkEvents;
- interface ISWbemSink;
- interface ISWbemSecurity;
- interface ISWbemPrivilege;
- interface ISWbemPrivilegeSet;
- interface ISWbemServicesEx;
- interface ISWbemObjectEx;
- interface ISWbemDateTime;
- interface ISWbemRefresher;
- interface ISWbemRefreshableItem;
-
- // These are used by ISWbemObject.Put_
- typedef
- [
- v1_enum,
- uuid(4A249B72-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines semantics of putting a Class or Instance")
- ]
- enum WbemChangeFlagEnum
- {
- wbemChangeFlagCreateOrUpdate = 0x0,
- wbemChangeFlagUpdateOnly = 0x1,
- wbemChangeFlagCreateOnly = 0x2,
- wbemChangeFlagUpdateCompatible = 0x0,
- wbemChangeFlagUpdateSafeMode = 0x20,
- wbemChangeFlagUpdateForceMode = 0x40,
- wbemChangeFlagStrongValidation = 0x80,
- wbemChangeFlagAdvisory = 0x000010000
- } WbemChangeFlagEnum;
- // These are used by ExecQuery, SubclassesOf, InstancesOf, etc.
- typedef
- [
- v1_enum,
- uuid(4A249B73-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines behavior of various interface calls"),
- ]
- enum WbemFlagEnum
- {
- wbemFlagReturnImmediately = 0x10,
- wbemFlagReturnWhenComplete = 0,
- wbemFlagBidirectional = 0,
- wbemFlagForwardOnly = 0x20,
- wbemFlagNoErrorObject = 0x40,
- wbemFlagReturnErrorObject = 0,
- wbemFlagSendStatus = 0x80,
- wbemFlagDontSendStatus = 0,
- wbemFlagEnsureLocatable = 0x100,
- wbemFlagDirectRead = 0x200,
- wbemFlagSendOnlySelected = 0,
- wbemFlagUseAmendedQualifiers = 0x20000,
- wbemFlagGetDefault = 0x0,
- wbemFlagSpawnInstance = 0x1,
- wbemFlagUseCurrentTime = 0x1
- } WbemFlagEnum;
- // These are used by ISWbemServices::ExecQuery, SubclassesOf
- // and InstancesOf
- typedef
- [
- v1_enum,
- uuid(4A249B76-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines depth of enumeration or query")
- ]
- enum WbemQueryFlagEnum
- {
- wbemQueryFlagDeep = 0,
- wbemQueryFlagShallow = 1,
- wbemQueryFlagPrototype = 2
- } WbemQueryFlagEnum;
- // Following is used by ISWbemObject::GetObjectText_
- typedef
- [
- v1_enum,
- uuid(4A249B78-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines content of generated object text")
- ]
- enum WbemTextFlagEnum
- {
- wbemTextFlagNoFlavors = 0x1
- } WbemTextFlagEnum;
- // Following is used by ISWbemServices::ExecNotificationQuery
- typedef
- [
- v1_enum,
- uuid(BF078C2A-07D9-11d2-8B21-00600806D9B6),
- helpstring("Defines timeout constants")
- ]
- enum WbemTimeout
- {
- wbemTimeoutInfinite = 0xFFFFFFFF
- } WbemTimeout;
- // Following is used by ISWbemObject::CompareTo_
- typedef
- [
- v1_enum,
- uuid(4A249B79-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines settings for object comparison")
- ]
- enum WbemComparisonFlagEnum
- {
- wbemComparisonFlagIncludeAll = 0,
- wbemComparisonFlagIgnoreQualifiers = 0x1,
- wbemComparisonFlagIgnoreObjectSource = 0x2,
- wbemComparisonFlagIgnoreDefaultValues = 0x4,
- wbemComparisonFlagIgnoreClass = 0x8,
- wbemComparisonFlagIgnoreCase = 0x10,
- wbemComparisonFlagIgnoreFlavor = 0x20
- } WbemComparisonFlagEnum;
- typedef
- [
- v1_enum,
- uuid(4A249B7B-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines the valid CIM Types of a Property value")
- ]
- enum WbemCimtypeEnum
- {
- wbemCimtypeSint8 = 16,
- wbemCimtypeUint8 = 17,
- wbemCimtypeSint16 = 2,
- wbemCimtypeUint16 = 18,
- wbemCimtypeSint32 = 3,
- wbemCimtypeUint32 = 19,
- wbemCimtypeSint64 = 20,
- wbemCimtypeUint64 = 21,
- wbemCimtypeReal32 = 4,
- wbemCimtypeReal64 = 5,
- wbemCimtypeBoolean = 11,
- wbemCimtypeString = 8,
- wbemCimtypeDatetime = 101,
- wbemCimtypeReference = 102,
- wbemCimtypeChar16 = 103,
- wbemCimtypeObject = 13
- } WbemCimtypeEnum;
- /////////////////////////////////////////////////////////////////
- //
- typedef
- [
- v1_enum,
- uuid(4A249B7C-FC9A-11d1-8B1E-00600806D9B6),
- helpstring("Defines the errors that may be returned by the WBEM Scripting library")
- ] enum WbemErrorEnum
- {
- // Errors.
- // =======
- wbemNoErr = 0,
- wbemErrFailed = 0x80041001,
- wbemErrNotFound = 0x80041002,
- wbemErrAccessDenied = 0x80041003,
- wbemErrProviderFailure = 0x80041004,
- wbemErrTypeMismatch = 0x80041005,
- wbemErrOutOfMemory = 0x80041006,
- wbemErrInvalidContext = 0x80041007,
- wbemErrInvalidParameter = 0x80041008,
- wbemErrNotAvailable = 0x80041009,
- wbemErrCriticalError = 0x8004100A,
- wbemErrInvalidStream = 0x8004100B,
- wbemErrNotSupported = 0x8004100C,
- wbemErrInvalidSuperclass = 0x8004100D,
- wbemErrInvalidNamespace = 0x8004100E,
- wbemErrInvalidObject = 0x8004100F,
- wbemErrInvalidClass = 0x80041010,
- wbemErrProviderNotFound = 0x80041011,
- wbemErrInvalidProviderRegistration = 0x80041012,
- wbemErrProviderLoadFailure = 0x80041013,
- wbemErrInitializationFailure = 0x80041014,
- wbemErrTransportFailure = 0x80041015,
- wbemErrInvalidOperation = 0x80041016,
- wbemErrInvalidQuery = 0x80041017,
- wbemErrInvalidQueryType = 0x80041018,
- wbemErrAlreadyExists = 0x80041019,
- wbemErrOverrideNotAllowed = 0x8004101A,
- wbemErrPropagatedQualifier = 0x8004101B,
- wbemErrPropagatedProperty = 0x8004101C,
- wbemErrUnexpected = 0x8004101D,
- wbemErrIllegalOperation = 0x8004101E,
- wbemErrCannotBeKey = 0x8004101F,
- wbemErrIncompleteClass = 0x80041020,
- wbemErrInvalidSyntax = 0x80041021,
- wbemErrNondecoratedObject = 0x80041022,
- wbemErrReadOnly = 0x80041023,
- wbemErrProviderNotCapable = 0x80041024,
- wbemErrClassHasChildren = 0x80041025,
- wbemErrClassHasInstances = 0x80041026,
- wbemErrQueryNotImplemented = 0x80041027,
- wbemErrIllegalNull = 0x80041028,
- wbemErrInvalidQualifierType = 0x80041029,
- wbemErrInvalidPropertyType = 0x8004102A,
- wbemErrValueOutOfRange = 0x8004102B,
- wbemErrCannotBeSingleton = 0x8004102C,
- wbemErrInvalidCimType = 0x8004102D,
- wbemErrInvalidMethod = 0x8004102E,
- wbemErrInvalidMethodParameters = 0x8004102F,
- wbemErrSystemProperty = 0x80041030,
- wbemErrInvalidProperty = 0x80041031,
- wbemErrCallCancelled = 0x80041032,
- wbemErrShuttingDown = 0x80041033,
- wbemErrPropagatedMethod = 0x80041034,
- wbemErrUnsupportedParameter = 0x80041035,
- wbemErrMissingParameter = 0x80041036,
- wbemErrInvalidParameterId = 0x80041037,
- wbemErrNonConsecutiveParameterIds = 0x80041038,
- wbemErrParameterIdOnRetval = 0x80041039,
- wbemErrInvalidObjectPath = 0x8004103A,
- wbemErrOutOfDiskSpace = 0x8004103B,
- wbemErrBufferTooSmall = 0x8004103C,
- wbemErrUnsupportedPutExtension = 0x8004103D,
- wbemErrUnknownObjectType = 0x8004103E,
- wbemErrUnknownPacketType = 0x8004103F,
- wbemErrMarshalVersionMismatch = 0x80041040,
- wbemErrMarshalInvalidSignature = 0x80041041,
- wbemErrInvalidQualifier = 0x80041042,
- wbemErrInvalidDuplicateParameter = 0x80041043,
- wbemErrTooMuchData = 0x80041044,
- wbemErrServerTooBusy = 0x80041045,
- wbemErrInvalidFlavor = 0x80041046,
- wbemErrCircularReference = 0x80041047,
- wbemErrUnsupportedClassUpdate = 0x80041048,
- wbemErrCannotChangeKeyInheritance = 0x80041049,
- wbemErrCannotChangeIndexInheritance = 0x80041050,
- wbemErrTooManyProperties = 0x80041051,
- wbemErrUpdateTypeMismatch = 0x80041052,
- wbemErrUpdateOverrideNotAllowed = 0x80041053,
- wbemErrUpdatePropagatedMethod = 0x80041054,
- wbemErrMethodNotImplemented = 0x80041055,
- wbemErrMethodDisabled = 0x80041056,
- wbemErrRefresherBusy = 0x80041057,
- wbemErrUnparsableQuery = 0x80041058,
- wbemErrNotEventClass = 0x80041059,
- wbemErrMissingGroupWithin = 0x8004105A,
- wbemErrMissingAggregationList = 0x8004105B,
- wbemErrPropertyNotAnObject = 0x8004105C,
- wbemErrAggregatingByObject = 0x8004105D,
- wbemErrUninterpretableProviderQuery = 0x8004105F,
- wbemErrBackupRestoreWinmgmtRunning = 0x80041060,
- wbemErrQueueOverflow = 0x80041061,
- wbemErrPrivilegeNotHeld = 0x80041062,
- wbemErrInvalidOperator = 0x80041063,
- wbemErrLocalCredentials = 0x80041064,
- wbemErrCannotBeAbstract = 0x80041065,
- wbemErrAmendedObject = 0x80041066,
- wbemErrClientTooSlow = 0x80041067,
- wbemErrNullSecurityDescriptor = 0x80041068,
- wbemErrTimeout = 0x80041069,
- wbemErrInvalidAssociation = 0x8004106A,
- wbemErrAmbiguousOperation = 0x8004106B,
- wbemErrQuotaViolation = 0x8004106C,
- wbemErrTransactionConflict = 0x8004106D,
- wbemErrForcedRollback = 0x8004106E,
- wbemErrUnsupportedLocale = 0x8004106F,
- wbemErrHandleOutOfDate = 0x80041070,
- wbemErrConnectionFailed = 0x80041071,
- wbemErrInvalidHandleRequest = 0x80041072,
- wbemErrPropertyNameTooWide = 0x80041073,
- wbemErrClassNameTooWide = 0x80041074,
- wbemErrMethodNameTooWide = 0x80041075,
- wbemErrQualifierNameTooWide = 0x80041076,
- wbemErrRerunCommand = 0x80041077,
- wbemErrDatabaseVerMismatch = 0x80041078,
- wbemErrVetoPut = 0x80041079,
- wbemErrVetoDelete = 0x8004107A,
- wbemErrInvalidLocale = 0x80041080,
- wbemErrProviderSuspended = 0x80041081,
- wbemErrSynchronizationRequired = 0x80041082,
- wbemErrNoSchema = 0x80041083,
- wbemErrProviderAlreadyRegistered = 0x80041084,
- wbemErrProviderNotRegistered = 0x80041085,
- wbemErrFatalTransportError = 0x80041086,
- wbemErrEncryptedConnectionRequired = 0x80041087,
- // Event Subsystem Errors
- wbemErrRegistrationTooBroad = 0x80042001,
- wbemErrRegistrationTooPrecise = 0x80042002,
- // Automation-specific errors
- wbemErrTimedout = 0x80043001,
- wbemErrResetToDefault = 0x80043002
-
- } WbemErrorEnum;
- // The following are used in conjunction with the SWbemSecurity object
- typedef
- [
- v1_enum,
- uuid(B54D66E7-2287-11d2-8B33-00600806D9B6),
- helpstring("Defines the security authentication level"),
- ]
- enum WbemAuthenticationLevelEnum
- {
- wbemAuthenticationLevelDefault = 0,
- wbemAuthenticationLevelNone = 1,
- wbemAuthenticationLevelConnect = 2,
- wbemAuthenticationLevelCall = 3,
- wbemAuthenticationLevelPkt = 4,
- wbemAuthenticationLevelPktIntegrity = 5,
- wbemAuthenticationLevelPktPrivacy = 6
- } WbemAuthenticationLevelEnum;
- typedef
- [
- v1_enum,
- uuid(B54D66E8-2287-11d2-8B33-00600806D9B6),
- helpstring("Defines the security impersonation level"),
- ]
- enum WbemImpersonationLevelEnum
- {
- wbemImpersonationLevelAnonymous = 1,
- wbemImpersonationLevelIdentify = 2,
- wbemImpersonationLevelImpersonate = 3,
- wbemImpersonationLevelDelegate = 4
- } WbemImpersonationLevelEnum;
- typedef
- [
- v1_enum,
- uuid(176D2F70-5AF3-11d2-8B4A-00600806D9B6),
- helpstring("Defines a privilege"),
- ]
- enum WbemPrivilegeEnum
- {
- wbemPrivilegeCreateToken = 1,
- wbemPrivilegePrimaryToken = 2,
- wbemPrivilegeLockMemory = 3,
- wbemPrivilegeIncreaseQuota = 4,
- wbemPrivilegeMachineAccount = 5,
- wbemPrivilegeTcb = 6,
- wbemPrivilegeSecurity = 7,
- wbemPrivilegeTakeOwnership = 8,
- wbemPrivilegeLoadDriver = 9,
- wbemPrivilegeSystemProfile = 10,
- wbemPrivilegeSystemtime = 11,
- wbemPrivilegeProfileSingleProcess = 12,
- wbemPrivilegeIncreaseBasePriority = 13,
- wbemPrivilegeCreatePagefile = 14,
- wbemPrivilegeCreatePermanent = 15,
- wbemPrivilegeBackup = 16,
- wbemPrivilegeRestore = 17,
- wbemPrivilegeShutdown = 18,
- wbemPrivilegeDebug = 19,
- wbemPrivilegeAudit = 20,
- wbemPrivilegeSystemEnvironment = 21,
- wbemPrivilegeChangeNotify = 22,
- wbemPrivilegeRemoteShutdown = 23,
- wbemPrivilegeUndock = 24,
- wbemPrivilegeSyncAgent = 25,
- wbemPrivilegeEnableDelegation = 26,
- wbemPrivilegeManageVolume = 27
- } WbemPrivilegeEnum;
- // Object Text Formats
- typedef
- [
- v1_enum,
- uuid(09FF1992-EA0E-11d3-B391-00105A1F473A),
- helpstring("Defines object text formats"),
- ]
- enum WbemObjectTextFormatEnum
- {
- wbemObjectTextFormatCIMDTD20 = 1,
- wbemObjectTextFormatWMIDTD20 = 2
- } WbemObjectTextFormatEnum;
- // This is new for Whistler and used with ConnectServer
- typedef
- [
- v1_enum,
- helpstring("Used to define connection behavior")
- ]
- enum WbemConnectOptionsEnum
- {
- // wbemConnectFlagRepositoryOnly = 0X40, //not exposed
- wbemConnectFlagUseMaxWait = 0X80
- } WbemConnectOptionsEnum;
- //coclasses
- //=========
- [
- uuid(76A64158-CB41-11d1-8B02-00600806D9B6),
- helpstring("Used to obtain Namespace connections")
- ]
- coclass SWbemLocator
- {
- interface ISWbemLocator;
- };
- [
- uuid(9AED384E-CE8B-11d1-8B05-00600806D9B6),
- helpstring("A collection of Named Values")
- ]
- coclass SWbemNamedValueSet
- {
- interface ISWbemNamedValueSet;
- };
- [
- uuid(5791BC26-CE9C-11d1-97BF-0000F81E849C),
- helpstring("Object Path")
- ]
- coclass SWbemObjectPath
- {
- interface ISWbemObjectPath;
- };
- [
- uuid(C2FEEEAC-CFCD-11d1-8B05-00600806D9B6),
- helpstring("The last error on the current thread")
- ]
- coclass SWbemLastError
- {
- interface ISWbemLastError;
- };
- [
- uuid(75718C9A-F029-11d1-A1AC-00C04FB6C223),
- helpstring("A sink for events arising from asynchronous operations")
- ]
- coclass SWbemSink
- {
- interface ISWbemSink;
- [default, source] dispinterface ISWbemSinkEvents;
- };
- [
- uuid(47DFBE54-CF76-11d3-B38F-00105A1F473A),
- helpstring("Date & Time")
- ]
- coclass SWbemDateTime
- {
- interface ISWbemDateTime;
- };
- [
- uuid(D269BF5C-D9C1-11d3-B38F-00105A1F473A),
- helpstring("Refresher")
- ]
- coclass SWbemRefresher
- {
- interface ISWbemRefresher;
- };
- /* The following are non-creatable coclasses */
- [
- uuid(04B83D63-21AE-11d2-8B33-00600806D9B6),
- helpstring("A connection to a Namespace"),
- noncreatable
- ]
- coclass SWbemServices
- {
- interface ISWbemServices;
- };
- [
- uuid(62E522DC-8CF3-40a8-8B2E-37D595651E40),
- helpstring("A connection to a Namespace"),
- noncreatable
- ]
- coclass SWbemServicesEx
- {
- interface ISWbemServicesEx;
- };
-
- [
- uuid(04B83D62-21AE-11d2-8B33-00600806D9B6),
- helpstring("A Class or Instance"),
- noncreatable
- ]
- coclass SWbemObject
- {
- interface ISWbemObject;
- };
- [
- uuid(D6BDAFB2-9435-491f-BB87-6AA0F0BC31A2),
- helpstring("A Class or Instance"),
- noncreatable
- ]
- coclass SWbemObjectEx
- {
- interface ISWbemObjectEx;
- };
-
- [
- uuid(04B83D61-21AE-11d2-8B33-00600806D9B6),
- helpstring("A collection of Classes or Instances"),
- noncreatable
- ]
- coclass SWbemObjectSet
- {
- interface ISWbemObjectSet;
- };
- [
- uuid(04B83D60-21AE-11d2-8B33-00600806D9B6),
- helpstring("A named value"),
- noncreatable
- ]
- coclass SWbemNamedValue
- {
- interface ISWbemNamedValue;
- };
- [
- uuid(04B83D5F-21AE-11d2-8B33-00600806D9B6),
- helpstring("A Qualifier"),
- noncreatable
- ]
- coclass SWbemQualifier
- {
- interface ISWbemQualifier;
- }
- [
- uuid(04B83D5E-21AE-11d2-8B33-00600806D9B6),
- helpstring("A collection of Qualifiers"),
- noncreatable
- ]
- coclass SWbemQualifierSet
- {
- interface ISWbemQualifierSet;
- };
- [
- uuid(04B83D5D-21AE-11d2-8B33-00600806D9B6),
- helpstring("A Property"),
- noncreatable
- ]
- coclass SWbemProperty
- {
- interface ISWbemProperty;
- };
- [
- uuid(04B83D5C-21AE-11d2-8B33-00600806D9B6),
- helpstring("A collection of Properties"),
- noncreatable
- ]
- coclass SWbemPropertySet
- {
- interface ISWbemPropertySet;
- };
- [
- uuid(04B83D5B-21AE-11d2-8B33-00600806D9B6),
- helpstring("A Method"),
- noncreatable
- ]
- coclass SWbemMethod
- {
- interface ISWbemMethod;
- };
- [
- uuid(04B83D5A-21AE-11d2-8B33-00600806D9B6),
- helpstring("A collection of Methods"),
- noncreatable
- ]
- coclass SWbemMethodSet
- {
- interface ISWbemMethodSet;
- }
- [
- uuid(04B83D58-21AE-11d2-8B33-00600806D9B6),
- helpstring("An Event source"),
- noncreatable
- ]
- coclass SWbemEventSource
- {
- interface ISWbemEventSource;
- };
- [
- uuid(B54D66E9-2287-11d2-8B33-00600806D9B6),
- helpstring("A Security Configurator"),
- noncreatable
- ]
- coclass SWbemSecurity
- {
- interface ISWbemSecurity;
- }
- [
- uuid(26EE67BC-5804-11d2-8B4A-00600806D9B6),
- helpstring("A Privilege Override"),
- noncreatable
- ]
- coclass SWbemPrivilege
- {
- interface ISWbemPrivilege;
- }
- [
- uuid(26EE67BE-5804-11d2-8B4A-00600806D9B6),
- helpstring("A collection of Privilege Overrides"),
- noncreatable
- ]
- coclass SWbemPrivilegeSet
- {
- interface ISWbemPrivilegeSet;
- }
- [
- uuid(8C6854BC-DE4B-11d3-B390-00105A1F473A),
- helpstring("A single item from a Refresher"),
- noncreatable
- ]
- coclass SWbemRefreshableItem
- {
- interface ISWbemRefreshableItem;
- }
- };
- [
- object,
- local,
- uuid(76A6415B-CB41-11d1-8B02-00600806D9B6),
- dual,
- hidden,
- //nonextensible,
- oleautomation,
- pointer_default(unique),
- helpstring("Used to obtain Namespace connections")
- ]
- interface ISWbemLocator : IDispatch
- {
- [
- id(1),
- helpstring("Connect to a Namespace")
- ]
- HRESULT ConnectServer(
- [in, defaultvalue(".")] BSTR strServer,
- [in, defaultvalue("")] BSTR strNamespace,
- [in, defaultvalue("")] BSTR strUser,
- [in, defaultvalue("")] BSTR strPassword,
- [in, defaultvalue("")] BSTR strLocale,
- [in, defaultvalue("")] BSTR strAuthority,
- [in, defaultvalue(0)] long iSecurityFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemServices **objWbemServices
- );
- [
- id(2),
- propget,
- helpstring("The Security Configurator for this Object")
- ]
- HRESULT Security_ ([out, retval] ISWbemSecurity **objWbemSecurity);
- };
- [
- local,
- object,
- uuid(76A6415C-CB41-11d1-8B02-00600806D9B6),
- oleautomation,
- dual,
- //nonextensible,
- pointer_default(unique),
- hidden,
- helpstring("A connection to a Namespace")
- ]
- interface ISWbemServices : IDispatch
- {
- // Object Operations
- // =====================
- [
- id(1),
- helpstring("Get a single Class or Instance")
- ]
- HRESULT Get (
- [in, defaultvalue("")] BSTR strObjectPath,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObject **objWbemObject
- );
- [
- id(2),
- helpstring("Get a single Class or Instance asynchronously")
- ]
- HRESULT GetAsync (
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue("")] BSTR strObjectPath,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(3),
- helpstring("Delete a Class or Instance")
- ]
- HRESULT Delete (
- [in] BSTR strObjectPath,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet
- );
- [
- id(4),
- helpstring("Delete a Class or Instance asynchronously")
- ]
- HRESULT DeleteAsync (
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strObjectPath,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(5),
- helpstring("Enumerate the Instances of a Class")
- ]
- HRESULT InstancesOf(
- [in] BSTR strClass,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(6),
- helpstring("Enumerate the Instances of a Class asynchronously")
- ]
- HRESULT InstancesOfAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strClass,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(7),
- helpstring("Enumerate the subclasses of a Class")
- ]
- HRESULT SubclassesOf(
- [in, defaultvalue("")] BSTR strSuperclass,
- [in, defaultvalue(wbemFlagReturnImmediately|wbemQueryFlagDeep)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(8),
- helpstring("Enumerate the subclasses of a Class asynchronously ")
- ]
- HRESULT SubclassesOfAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue("")] BSTR strSuperclass,
- [in, defaultvalue(wbemQueryFlagDeep)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
-
- // Queries
- // =======
- [
- id(9),
- helpstring("Execute a Query")
- ]
- HRESULT ExecQuery(
- [in] BSTR strQuery,
- [in, defaultvalue("WQL")] BSTR strQueryLanguage,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(10),
- helpstring("Execute an asynchronous Query")
- ]
- HRESULT ExecQueryAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strQuery,
- [in, defaultvalue("WQL")] BSTR strQueryLanguage,
- [in, defaultvalue(0)] long lFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(11),
- helpstring("Get the Associators of a class or instance")
- ]
- HRESULT AssociatorsOf(
- [in] BSTR strObjectPath,
- [in, defaultvalue("")] BSTR strAssocClass,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strResultRole,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredAssocQualifier,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(12),
- helpstring("Get the Associators of a class or instance asynchronously")
- ]
- HRESULT AssociatorsOfAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strObjectPath,
- [in, defaultvalue("")] BSTR strAssocClass,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strResultRole,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredAssocQualifier,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(13),
- helpstring("Get the References to a class or instance")
- ]
- HRESULT ReferencesTo(
- [in] BSTR strObjectPath,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(14),
- helpstring("Get the References to a class or instance asynchronously")
- ]
- HRESULT ReferencesToAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strObjectPath,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
-
- [
- id(15),
- helpstring("Execute a Query to receive Notifications")
- ]
- HRESULT ExecNotificationQuery(
- [in] BSTR strQuery,
- [in, defaultvalue("WQL")] BSTR strQueryLanguage,
- [in, defaultvalue(wbemFlagReturnImmediately|wbemFlagForwardOnly)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemEventSource **objWbemEventSource
- );
- [
- id(16),
- helpstring("Execute an asynchronous Query to receive Notifications")
- ]
- HRESULT ExecNotificationQueryAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strQuery,
- [in, defaultvalue("WQL")] BSTR strQueryLanguage,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- // Method Invocation
- // =================
- [
- id(17),
- helpstring("Execute a Method")
- ]
- HRESULT ExecMethod(
- [in] BSTR strObjectPath,
- [in] BSTR strMethodName,
- [in, defaultvalue(0)] /*ISWbemObject*/ IDispatch *objWbemInParameters,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObject **objWbemOutParameters
- );
- [
- id(18),
- helpstring("Execute a Method asynchronously")
- ]
- HRESULT ExecMethodAsync(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strObjectPath,
- [in] BSTR strMethodName,
- [in, defaultvalue(0)] /*ISWbemObject*/ IDispatch *objWbemInParameters,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(19),
- propget,
- helpstring("The Security Configurator for this Object")
- ]
- HRESULT Security_ ([out, retval] ISWbemSecurity **objWbemSecurity);
- };
- [
- local,
- object,
- uuid(D2F68443-85DC-427e-91D8-366554CC754C),
- oleautomation,
- dual,
- nonextensible,
- pointer_default(unique),
- hidden,
- helpstring("A connection to a Namespace")
- ]
- interface ISWbemServicesEx : ISWbemServices
- {
- [
- id(20),
- helpstring("Save the Object to this Namespace")
- ]
- HRESULT Put(
- [in] ISWbemObjectEx *objWbemObject,
- [in, defaultvalue(wbemChangeFlagCreateOrUpdate)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectPath **objWbemObjectPath
- );
- [
- id(21),
- helpstring("Save the Object to this Namespace asynchronously")
- ]
- HRESULT PutAsync(
- [in] ISWbemSink *objWbemSink,
- [in] ISWbemObjectEx *objWbemObject,
- [in, defaultvalue(wbemChangeFlagCreateOrUpdate)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- };
- [
- local,
- object,
- uuid(76A6415A-CB41-11d1-8B02-00600806D9B6),
- dual,
- oleautomation,
- hidden,
- helpstring("A Class or Instance")
- ]
- interface ISWbemObject : IDispatch
- {
- [
- id(1),
- helpstring("Save this Object")
- ]
- HRESULT Put_(
- [in, defaultvalue(wbemChangeFlagCreateOrUpdate)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectPath **objWbemObjectPath
- );
- [
- id(2),
- helpstring("Save this Object asynchronously")
- ]
- HRESULT PutAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue(wbemChangeFlagCreateOrUpdate)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id (3),
- helpstring("Delete this Object")
- ]
- HRESULT Delete_(
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet
- );
- [
- id (4),
- helpstring("Delete this Object asynchronously")
- ]
- HRESULT DeleteAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(5),
- helpstring("Return all instances of this Class")
- ]
- HRESULT Instances_(
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(6),
- helpstring("Return all instances of this Class asynchronously")
- ]
- HRESULT InstancesAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(7),
- helpstring("Enumerate subclasses of this Class")
- ]
- HRESULT Subclasses_(
- [in, defaultvalue(wbemFlagReturnImmediately|wbemQueryFlagDeep)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(8),
- helpstring("Enumerate subclasses of this Class asynchronously")
- ]
- HRESULT SubclassesAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue(wbemQueryFlagDeep)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(9),
- helpstring("Get the Associators of this Object")
- ]
- HRESULT Associators_(
- [in, defaultvalue("")] BSTR strAssocClass,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strResultRole,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredAssocQualifier,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(10),
- helpstring("Get the Associators of this Object asynchronously")
- ]
- HRESULT AssociatorsAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue("")] BSTR strAssocClass,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strResultRole,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredAssocQualifier,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(11),
- helpstring("Get the References to this Object")
- ]
- HRESULT References_(
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(wbemFlagReturnImmediately)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(12),
- helpstring("Get the References to this Object asynchronously")
- ]
- HRESULT ReferencesAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in, defaultvalue("")] BSTR strResultClass,
- [in, defaultvalue("")] BSTR strRole,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bClassesOnly,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bSchemaOnly,
- [in, defaultvalue("")] BSTR strRequiredQualifier,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
-
- [
- id(13),
- helpstring("Execute a Method of this Object")
- ]
- HRESULT ExecMethod_(
- [in] BSTR strMethodName,
- [in, defaultvalue(0)] /*ISWbemObject*/ IDispatch *objWbemInParameters,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemObject **objWbemOutParameters
- );
- [
- id(14),
- helpstring("Execute a Method of this Object asynchronously")
- ]
- HRESULT ExecMethodAsync_(
- [in] /*SWbemSink*/ IDispatch *objWbemSink,
- [in] BSTR strMethodName,
- [in, defaultvalue(0)] /*ISWbemObject*/ IDispatch *objWbemInParameters,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemAsyncContext
- );
- [
- id(15),
- helpstring("Clone this Object")
- ]
- HRESULT Clone_(
- [out, retval] ISWbemObject **objWbemObject
- );
- [
- id(16),
- helpstring("Get the MOF text of this Object")
- ]
- HRESULT GetObjectText_(
- [in, defaultvalue(0)] long iFlags,
- [out, retval] BSTR *strObjectText
- );
- [
- id(17),
- helpstring("Create a subclass of this Object")
- ]
- HRESULT SpawnDerivedClass_(
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemObject** objWbemObject
- );
- [
- id(18),
- helpstring("Create an Instance of this Object")
- ]
- HRESULT SpawnInstance_(
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemObject** objWbemObject
- );
- [
- id(19),
- helpstring("Compare this Object with another")
- ]
- HRESULT CompareTo_(
- [in] /*ISWbemObject*/ IDispatch *objWbemObject,
- [in, defaultvalue(wbemComparisonFlagIncludeAll)] long iFlags,
- [out, retval] VARIANT_BOOL *bResult
- );
- [
- id(20),
- propget,
- helpstring("The collection of Qualifiers of this Object")
- ]
- HRESULT Qualifiers_ ([out, retval] ISWbemQualifierSet **objWbemQualifierSet);
-
- [
- id(21),
- propget,
- helpstring("The collection of Properties of this Object")
- ]
- HRESULT Properties_ ([out, retval] ISWbemPropertySet **objWbemPropertySet);
- [
- id(22),
- propget,
- helpstring("The collection of Methods of this Object")
- ] HRESULT Methods_ ([out, retval] ISWbemMethodSet **objWbemMethodSet);
- const ULONG WBEMS_DISPID_DERIVATION = 23;
- [
- id(WBEMS_DISPID_DERIVATION),
- propget,
- helpstring("An array of strings describing the class derivation heirarchy, in most-derived-from order (the first element in the array defines the superclass and the last element defines the dynasty class).")
- ]
- HRESULT Derivation_ ([out, retval] VARIANT *strClassNameArray);
- [
- id(24),
- propget,
- helpstring("The path of this Object")
- ]
- HRESULT Path_ ([out, retval] ISWbemObjectPath **objWbemObjectPath);
- [
- id(25),
- propget,
- helpstring("The Security Configurator for this Object")
- ]
- HRESULT Security_ ([out, retval] ISWbemSecurity **objWbemSecurity);
- };
- [
- local,
- object,
- uuid(269AD56A-8A67-4129-BC8C-0506DCFE9880),
- dual,
- oleautomation,
- hidden,
- helpstring("A Class or Instance")
- ]
- interface ISWbemObjectEx : ISWbemObject
- {
- [
- id(26),
- helpstring("Refresh this Object")
- ]
- HRESULT Refresh_ (
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet
- );
- [
- id(27),
- propget,
- helpstring("The collection of System Properties of this Object")
- ]
- HRESULT SystemProperties_ ([out, retval] ISWbemPropertySet **objWbemPropertySet);
- [
- id(28),
- helpstring("Retrieve a textual representation of this Object")
- ]
- HRESULT GetText_ (
- [in] WbemObjectTextFormatEnum iObjectTextFormat,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] BSTR *bsText
- );
- [
- id(29),
- helpstring("Set this Object using the supplied textual representation")
- ]
- HRESULT SetFromText_ (
- [in] BSTR bsText,
- [in] WbemObjectTextFormatEnum iObjectTextFormat,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet
- );
- };
- [
- local,
- object,
- uuid(D962DB84-D4BB-11d1-8B09-00600806D9B6),
- dual,
- oleautomation,
- hidden,
- helpstring("The last error on the current thread")
- ]
- interface ISWbemLastError : ISWbemObject
- {
- };
- [
- local,
- object,
- uuid(76A6415F-CB41-11d1-8B02-00600806D9B6),
- oleautomation,
- dual,
- hidden,
- nonextensible,
- helpstring("A collection of Classes or Instances")
- ]
- interface ISWbemObjectSet : IDispatch
- {
- [id(DISPID_NEWENUM), propget, restricted] HRESULT _NewEnum ([out, retval] IUnknown **pUnk);
- [
- id(DISPID_VALUE),
- helpstring("Get an Object with a specific path from this collection")
- ]
- HRESULT Item (
- [in] BSTR strObjectPath,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemObject **objWbemObject
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count ([out, retval] long *iCount);
- [
- id(4),
- propget,
- helpstring("The Security Configurator for this Object")
- ]
- HRESULT Security_ ([out, retval] ISWbemSecurity **objWbemSecurity);
- };
- /* ISWbemNamedValueSet is a Collection of ISWbemNamedValue elements */
- [
- local,
- object,
- uuid(CF2376EA-CE8C-11d1-8B05-00600806D9B6),
- oleautomation,
- dual,
- hidden,
- //nonextensible,
- helpstring("A collection of named values")
- ]
- interface ISWbemNamedValueSet : IDispatch
- {
- /* These are used in the context of collections */
- [id(DISPID_NEWENUM), propget, restricted] HRESULT _NewEnum ([out, retval] IUnknown **pUnk);
- [
- id(DISPID_VALUE),
- helpstring("Get a named value from this Collection")
- ]
- HRESULT Item (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemNamedValue **objWbemNamedValue
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count ([out, retval] long *iCount);
- [
- id(2),
- helpstring("Add a named value to this collection")
- ]
- HRESULT Add (
- [in] BSTR strName,
- [in] VARIANT *varValue,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemNamedValue **objWbemNamedValue
- );
- [
- id(3),
- helpstring("Remove a named value from this collection")
- ]
- HRESULT Remove (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags
- );
- /* End of collection-specific members */
-
- [
- id(4),
- helpstring("Make a copy of this collection")
- ]
- HRESULT Clone(
- [out, retval] ISWbemNamedValueSet **objWbemNamedValueSet
- );
- [
- id(5),
- helpstring("Delete all items in this collection")
- ]
- HRESULT DeleteAll();
- };
- [
- local,
- object,
- uuid(76A64164-CB41-11d1-8B02-00600806D9B6),
- dual,
- oleautomation,
- hidden,
- //nonextensible,
- helpstring("A named value")
- ]
- interface ISWbemNamedValue : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("The Value of this Named element")
- ]
- HRESULT Value([out, retval] VARIANT *varValue);
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT Value([in] VARIANT *varValue);
-
- [
- id(2),
- propget,
- helpstring("The Name of this Value")
- ]
- HRESULT Name([out, retval] BSTR *strName);
- };
- [
- object,
- local,
- uuid(5791BC27-CE9C-11d1-97BF-0000F81E849C),
- dual,
- oleautomation,
- hidden,
- //nonextensible,
- pointer_default(unique),
- helpstring("An Object path")
- ]
- interface ISWbemObjectPath : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("The full path")
- ]
- HRESULT Path([out, retval] BSTR *strPath);
-
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT Path([in] BSTR strPath);
- [
- id(1),
- propget,
- helpstring("The relative path")
- ]
- HRESULT RelPath([out, retval] BSTR *strRelPath);
-
- [
- id(1),
- propput
- ]
- HRESULT RelPath([in] BSTR strRelPath);
- [
- id(2),
- propget,
- helpstring("The name of the Server")
- ]
- HRESULT Server([out, retval] BSTR *strServer);
-
- [
- id(2),
- propput
- ]
- HRESULT Server([in] BSTR strServer);
- [
- id(3),
- propget,
- helpstring("The Namespace path")
- ]
- HRESULT Namespace([out, retval] BSTR *strNamespace);
- [
- id(3),
- propput
- ]
- HRESULT Namespace([in] BSTR strNamespace);
- [
- id(4),
- propget,
- helpstring("The parent Namespace path")
- ]
- HRESULT ParentNamespace([out, retval] BSTR *strParentNamespace);
- [
- id(5),
- propget,
- helpstring("The Display Name for this path")
- ]
- HRESULT DisplayName([out, retval] BSTR *strDisplayName);
-
- [
- id(5),
- propput
- ]
- HRESULT DisplayName([in] BSTR strDisplayName);
- [
- id(6),
- propget,
- helpstring("The Class name")
- ]
- HRESULT Class([out, retval] BSTR *strClass);
-
- [
- id(6),
- propput
- ]
- HRESULT Class([in] BSTR strClass);
- [
- id(7),
- propget,
- helpstring("Indicates whether this path addresses a Class")
- ]
- HRESULT IsClass([out, retval] VARIANT_BOOL *bIsClass);
- [
- id(8),
- helpstring("Coerce this path to address a Class")
- ]
- HRESULT SetAsClass();
- [
- id(9),
- propget,
- helpstring("Indicates whether this path addresses a Singleton Instance")
- ]
- HRESULT IsSingleton([out, retval] VARIANT_BOOL *bIsSingleton);
- [
- id(10),
- helpstring("Coerce this path to address a Singleton Instance")
- ]
- HRESULT SetAsSingleton();
- [
- id(11),
- propget,
- helpstring("The collection of Key value bindings for this path")
- ]
- HRESULT Keys([out, retval] ISWbemNamedValueSet** objWbemNamedValueSet);
- [
- id(12),
- propget,
- helpstring("Defines the security components of this path")
- ]
- HRESULT Security_([out,retval] ISWbemSecurity** objWbemSecurity);
- [
- id(13),
- propget,
- helpstring("Defines locale component of this path")
- ]
- HRESULT Locale([out,retval] BSTR* strLocale);
- [
- id(13),
- propput
- ]
- HRESULT Locale([in] BSTR strLocale);
- [
- id(14),
- propget,
- helpstring("Defines authentication authority component of this path")
- ]
- HRESULT Authority([out,retval] BSTR* strAuthority);
- [
- id(14),
- propput
- ]
- HRESULT Authority([in] BSTR strAuthority);
- };
- [
- object,
- local,
- uuid(1A388F98-D4BA-11d1-8B09-00600806D9B6),
- dual,
- oleautomation,
- hidden,
- //nonextensible,
- pointer_default(unique),
- helpstring("A Property")
- ]
- interface ISWbemProperty : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("The value of this Property")
- ]
- HRESULT Value([out, retval] VARIANT *varValue);
-
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT Value([in] VARIANT *varValue);
- [
- id(1),
- propget,
- helpstring("The name of this Property")
- ]
- HRESULT Name([out, retval] BSTR *strName);
-
- [
- id(2),
- propget,
- helpstring("Indicates whether this Property is local or propagated")
- ]
- HRESULT IsLocal([out,retval] VARIANT_BOOL *bIsLocal);
- [
- id(3),
- propget,
- helpstring("The originating class of this Property")
- ]
- HRESULT Origin([out,retval] BSTR *strOrigin);
- [
- id(4),
- propget,
- helpstring("The CIM Type of this Property")
- ]
- HRESULT CIMType([out,retval] WbemCimtypeEnum *iCimType);
- [
- id(5),
- propget,
- helpstring("The collection of Qualifiers of this Property")
- ] HRESULT Qualifiers_ ([out, retval] ISWbemQualifierSet **objWbemQualifierSet);
- [
- id(6),
- propget,
- helpstring("Indicates whether this Property is an array type")
- ]
- HRESULT IsArray([out,retval] VARIANT_BOOL *bIsArray);
- };
- /* ISWbemPropertySet is a Collection of ISWbemProperty elements */
- [
- object,
- local,
- uuid(DEA0A7B2-D4BA-11d1-8B09-00600806D9B6),
- oleautomation,
- dual,
- hidden,
- //nonextensible,
- helpstring("A collection of Properties")
- ]
- interface ISWbemPropertySet : IDispatch
- {
- /* These are used in the context of collections */
- [id(DISPID_NEWENUM), propget, restricted] HRESULT _NewEnum ([out, retval] IUnknown **pUnk);
- [
- id(DISPID_VALUE),
- helpstring("Get a named Property from this collection")
- ]
- HRESULT Item (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemProperty **objWbemProperty
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count ([out, retval] long *iCount);
- [
- id(2),
- helpstring("Add a Property to this collection")
- ]
- HRESULT Add (
- [in] BSTR strName,
- [in] WbemCimtypeEnum iCIMType,
- [in, defaultvalue(FALSE)] VARIANT_BOOL bIsArray,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemProperty **objWbemProperty
- );
- [
- id(3),
- helpstring("Remove a Property from this collection")
- ]
- HRESULT Remove (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags
- );
- };
- [
- object,
- local,
- uuid(79B05932-D3B7-11d1-8B06-00600806D9B6),
- dual,
- oleautomation,
- hidden,
- nonextensible,
- pointer_default(unique),
- helpstring("A Qualifier")
- ]
- interface ISWbemQualifier : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("The value of this Qualifier")
- ]
- HRESULT Value([out, retval] VARIANT *varValue);
-
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT Value([in] VARIANT *varValue);
- [
- id(1),
- propget,
- helpstring("The name of this Qualifier")
- ]
- HRESULT Name([out, retval] BSTR *strName);
-
- [
- id(2),
- propget,
- helpstring("Indicates whether this Qualifier is local or propagated")
- ]
- HRESULT IsLocal([out,retval] VARIANT_BOOL *bIsLocal);
- [
- id(3),
- propget,
- helpstring("Determines whether this Qualifier can propagate to subclasses")
- ]
- HRESULT PropagatesToSubclass([out, retval] VARIANT_BOOL *bPropagatesToSubclass);
- [
- id(3),
- propput
- ]
- HRESULT PropagatesToSubclass([in] VARIANT_BOOL bPropagatesToSubclass);
- [
- id(4),
- propget,
- helpstring("Determines whether this Qualifier can propagate to instances")
- ]
- HRESULT PropagatesToInstance([out, retval] VARIANT_BOOL *bPropagatesToInstance);
- [
- id(4),
- propput
- ]
- HRESULT PropagatesToInstance([in] VARIANT_BOOL bPropagatesToInstance);
- [
- id(5),
- propget,
- helpstring("Determines whether this Qualifier can be overridden where propagated")
- ]
- HRESULT IsOverridable([out, retval] VARIANT_BOOL *bIsOverridable);
- [
- id(5),
- propput
- ]
- HRESULT IsOverridable([in] VARIANT_BOOL bIsOverridable);
- [
- id(6),
- propget,
- helpstring("Determines whether the value of this Qualifier has been amended")
- ]
- HRESULT IsAmended([out, retval] VARIANT_BOOL *bIsAmended);
- };
- /* ISWbemQualifierSet is a Collection of ISWbemQualifier elements */
- [
- object,
- local,
- uuid(9B16ED16-D3DF-11d1-8B08-00600806D9B6),
- oleautomation,
- dual,
- hidden,
- nonextensible,
- helpstring("A collection of Qualifiers")
- ]
- interface ISWbemQualifierSet : IDispatch
- {
- /* These are used in the context of collections */
- [
- id(DISPID_NEWENUM),
- propget,
- restricted
- ]
- HRESULT _NewEnum (
- [out, retval] IUnknown **pUnk
- );
- [
- id(DISPID_VALUE),
- helpstring("Get a named Qualifier from this collection")
- ]
- HRESULT Item (
- [in] BSTR name,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemQualifier **objWbemQualifier
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count (
- [out, retval] long *iCount
- );
- [
- id(2),
- helpstring("Add a Qualifier to this collection")
- ]
- HRESULT Add (
- [in] BSTR strName,
- [in] VARIANT *varVal,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bPropagatesToSubclass,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bPropagatesToInstance,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsOverridable,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemQualifier **objWbemQualifier
- );
- [
- id(3),
- helpstring("Remove a Qualifier from this collection")
- ]
- HRESULT Remove (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags
- );
- /* End of collection-specific members */
- };
- [
- object,
- local,
- uuid(422E8E90-D955-11d1-8B09-00600806D9B6),
- dual,
- oleautomation,
- pointer_default(unique),
- nonextensible,
- hidden,
- helpstring("A Method")
- ]
- interface ISWbemMethod : IDispatch
- {
- [
- id(1),
- propget,
- helpstring("The name of this Method")
- ]
- HRESULT Name([out, retval] BSTR *strName);
-
- [
- id(2),
- propget,
- helpstring("The originating class of this Method")
- ]
- HRESULT Origin([out,retval] BSTR *strOrigin);
- [
- id(3),
- propget,
- helpstring("The in parameters for this Method.")
- ]
- HRESULT InParameters ([out, retval] ISWbemObject **objWbemInParameters);
- [
- id(4),
- propget,
- helpstring("The out parameters for this Method.")
- ]
- HRESULT OutParameters ([out, retval] ISWbemObject **objWbemOutParameters);
- [
- id(5),
- propget,
- helpstring("The collection of Qualifiers of this Method.")
- ]
- HRESULT Qualifiers_ ([out, retval] ISWbemQualifierSet **objWbemQualifierSet);
- };
- /* ISWbemMethodSet is a Collection of ISWbemMethod elements */
- [
- local,
- object,
- uuid(C93BA292-D955-11d1-8B09-00600806D9B6),
- oleautomation,
- dual,
- nonextensible,
- hidden,
- helpstring("A collection of Methods")
- ]
- interface ISWbemMethodSet : IDispatch
- {
- /* These are used in the context of collections */
- [id(DISPID_NEWENUM), propget, restricted] HRESULT _NewEnum ([out, retval] IUnknown **pUnk);
- [
- id(DISPID_VALUE),
- helpstring("Get a named Method from this collection")
- ]
- HRESULT Item (
- [in] BSTR strName,
- [in, defaultvalue(0)] long iFlags,
- [out, retval] ISWbemMethod **objWbemMethod
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count ([out, retval] long *iCount);
-
- /* End of collection-specific members */
- };
- [
- object,
- uuid(75718C9F-F029-11d1-A1AC-00C04FB6C223),
- oleautomation,
- dual,
- hidden,
- nonextensible,
- helpstring("Asynchronous operation control")
- ]
- interface ISWbemSink : IDispatch
- {
- [
- id(1),
- helpstring("Cancel an asynchronous operation")
- ]
- HRESULT Cancel();
- };
- const ULONG WBEMS_DISPID_OBJECT_READY = 1;
- const ULONG WBEMS_DISPID_COMPLETED = 2;
- const ULONG WBEMS_DISPID_PROGRESS = 3;
- const ULONG WBEMS_DISPID_OBJECT_PUT = 4;
- const ULONG WBEMS_DISPID_CONNECTION_READY = 5;
- [
- uuid(75718CA0-F029-11d1-A1AC-00C04FB6C223),
- helpstring("A sink for events arising from asynchronous operations"),
- nonextensible,
- hidden
- ]
- dispinterface ISWbemSinkEvents
- {
- properties:
- methods:
- [
- id(WBEMS_DISPID_OBJECT_READY),
- helpstring("Event triggered when an Object is available")
- ]
- void OnObjectReady(
- ISWbemObject *objWbemObject,
- ISWbemNamedValueSet *objWbemAsyncContext
- );
- [
- id(WBEMS_DISPID_COMPLETED),
- helpstring("Event triggered when an asynchronous operation is completed")
- ]
- void OnCompleted (
- WbemErrorEnum iHResult,
- ISWbemObject *objWbemErrorObject,
- ISWbemNamedValueSet *objWbemAsyncContext
- );
- [
- id(WBEMS_DISPID_PROGRESS),
- helpstring("Event triggered to report the progress of an asynchronous operation")
- ]
- void OnProgress (
- long iUpperBound,
- long iCurrent,
- BSTR strMessage,
- ISWbemNamedValueSet *objWbemAsyncContext
- );
- [
- id(WBEMS_DISPID_OBJECT_PUT),
- helpstring("Event triggered when an object path is available following a Put operation")
- ]
- void OnObjectPut (
- ISWbemObjectPath *objWbemObjectPath,
- ISWbemNamedValueSet *objWbemAsyncContext
- );
- };
- /* ISWbemEventSource is an iterator for returned events from ExecQueryNotification */
- [
- object,
- local,
- uuid(27D54D92-0EBE-11d2-8B22-00600806D9B6),
- oleautomation,
- dual,
- nonextensible,
- hidden,
- helpstring("An Event source"),
- ]
- interface ISWbemEventSource : IDispatch
- {
- [
- id(1),
- helpstring("Retrieve the next event within a specified time period. The timeout is specified in milliseconds.")
- ]
- HRESULT NextEvent (
- [in, defaultvalue(wbemTimeoutInfinite)] long iTimeoutMs,
- [out, retval] ISWbemObject **objWbemObject
- );
- [
- id(2),
- propget,
- helpstring("The Security Configurator for this Object")
- ]
- HRESULT Security_ ([out, retval] ISWbemSecurity **objWbemSecurity);
- };
- /* ISWbemSecurity provides security settings for remotable calls */
- [
- object,
- local,
- uuid(B54D66E6-2287-11d2-8B33-00600806D9B6),
- oleautomation,
- dual,
- nonextensible,
- hidden,
- helpstring("A Security Configurator")
- ]
- interface ISWbemSecurity : IDispatch
- {
- [
- id(1),
- propget,
- helpstring("The security impersonation level")
- ]
- HRESULT ImpersonationLevel ([out, retval] WbemImpersonationLevelEnum *iImpersonationLevel);
-
- [
- id(1),
- propput
- ]
- HRESULT ImpersonationLevel ([in] WbemImpersonationLevelEnum iImpersonationLevel);
-
- [
- id(2),
- propget,
- helpstring("The security authentication level")
- ]
- HRESULT AuthenticationLevel ([out, retval] WbemAuthenticationLevelEnum *iAuthenticationLevel);
- [
- id(2),
- propput
- ]
- HRESULT AuthenticationLevel ([in] WbemAuthenticationLevelEnum iAuthenticationLevel);
- [
- id(3),
- propget,
- helpstring ("The collection of privileges for this object")
- ]
- HRESULT Privileges ([out, retval] ISWbemPrivilegeSet **objWbemPrivilegeSet);
- };
- /* ISWbemPrivilege provides security settings for remotable calls */
- [
- object,
- local,
- uuid(26EE67BD-5804-11d2-8B4A-00600806D9B6),
- oleautomation,
- dual,
- nonextensible,
- hidden,
- helpstring("A Privilege Override")
- ]
- interface ISWbemPrivilege : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("Whether the Privilege is to be enabled or disabled")
- ]
- HRESULT IsEnabled ([out, retval] VARIANT_BOOL *bIsEnabled);
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT IsEnabled ([in] VARIANT_BOOL bIsEnabled);
- [
- id(1),
- propget,
- helpstring("The name of the Privilege")
- ]
- HRESULT Name ([out, retval] BSTR *strDisplayName);
- [
- id(2),
- propget,
- helpstring ("The display name of the Privilege")
- ]
- HRESULT DisplayName ([out, retval] BSTR *strDisplayName);
- [
- id(3),
- propget,
- helpstring ("The Privilege identifier")
- ]
- HRESULT Identifier ([out, retval] WbemPrivilegeEnum *iPrivilege);
- };
- /* ISWbemPrivilegeSet is a Collection of ISWbemPrivilege elements */
- [
- object,
- local,
- uuid(26EE67BF-5804-11d2-8B4A-00600806D9B6),
- oleautomation,
- dual,
- hidden,
- nonextensible,
- helpstring("A collection of Privilege Overrides")
- ]
- interface ISWbemPrivilegeSet : IDispatch
- {
- /* These are used in the context of collections */
- [
- id(DISPID_NEWENUM),
- propget,
- restricted
- ]
- HRESULT _NewEnum (
- [out, retval] IUnknown **pUnk
- );
- [
- id(DISPID_VALUE),
- helpstring("Get a named Privilege from this collection")
- ]
- HRESULT Item (
- [in] WbemPrivilegeEnum iPrivilege,
- [out, retval] ISWbemPrivilege **objWbemPrivilege
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this collection")
- ]
- HRESULT Count (
- [out, retval] long *iCount
- );
- [
- id(2),
- helpstring("Add a Privilege to this collection")
- ]
- HRESULT Add (
- [in] WbemPrivilegeEnum iPrivilege,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsEnabled,
- [out, retval] ISWbemPrivilege **objWbemPrivilege
- );
- [
- id(3),
- helpstring("Remove a Privilege from this collection")
- ]
- HRESULT Remove (
- [in] WbemPrivilegeEnum iPrivilege
- );
- /* End of collection-specific members */
- [
- id(4),
- helpstring("Delete all items in this collection")
- ]
- HRESULT DeleteAll();
- [
- id(5),
- helpstring("Add a named Privilege to this collection")
- ]
- HRESULT AddAsString (
- [in] BSTR strPrivilege,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsEnabled,
- [out, retval] ISWbemPrivilege **objWbemPrivilege
- );
- };
- /* ISWbemDateTime provides a datetime helper wrapper */
- [
- object,
- local,
- uuid(5E97458A-CF77-11d3-B38F-00105A1F473A),
- oleautomation,
- dual,
- nonextensible,
- helpstring("A Datetime")
- ]
- interface ISWbemDateTime : IDispatch
- {
- [
- id(DISPID_VALUE),
- propget,
- helpstring("The DMTF datetime")
- ]
- HRESULT Value ([out, retval] BSTR *strValue);
- [
- id(DISPID_VALUE),
- propput
- ]
- HRESULT Value ([in] BSTR strValue);
- [
- id(1),
- propget,
- helpstring("The Year component of the value (must be in the range 0-9999)")
- ]
- HRESULT Year ([out, retval] long *iYear);
- [
- id(1),
- propput
- ]
- HRESULT Year ([in] long iYear);
- [
- id(2),
- propget,
- helpstring("Whether the Year component is specified")
- ]
- HRESULT YearSpecified ([out, retval] VARIANT_BOOL *bYearSpecified);
- [
- id(2),
- propput
- ]
- HRESULT YearSpecified ([in] VARIANT_BOOL bYearSpecified);
- [
- id(3),
- propget,
- helpstring("The Month component of the value (must be in the range 1-12)")
- ]
- HRESULT Month ([out, retval] long *iMonth);
- [
- id(3),
- propput
- ]
- HRESULT Month ([in] long iMonth);
- [
- id(4),
- propget,
- helpstring("Whether the Month component is specified")
- ]
- HRESULT MonthSpecified ([out, retval] VARIANT_BOOL *bMonthSpecified);
- [
- id(4),
- propput
- ]
- HRESULT MonthSpecified ([in] VARIANT_BOOL bMonthSpecified);
- [
- id(5),
- propget,
- helpstring("The Day component of the value (must be in the range 1-31, or 0-999999 for interval values)")
- ]
- HRESULT Day ([out, retval] long *iDay);
- [
- id(5),
- propput
- ]
- HRESULT Day ([in] long iDay);
- [
- id(6),
- propget,
- helpstring("Whether the Day component is specified")
- ]
- HRESULT DaySpecified ([out, retval] VARIANT_BOOL *bDaySpecified);
- [
- id(6),
- propput
- ]
- HRESULT DaySpecified ([in] VARIANT_BOOL bDaySpecified);
- [
- id(7),
- propget,
- helpstring("The Hours component of the value (must be in the range 0-23)")
- ]
- HRESULT Hours ([out, retval] long *iHours);
- [
- id(7),
- propput
- ]
- HRESULT Hours ([in] long iHours);
- [
- id(8),
- propget,
- helpstring("Whether the Hours component is specified")
- ]
- HRESULT HoursSpecified ([out, retval] VARIANT_BOOL *bHoursSpecified);
- [
- id(8),
- propput
- ]
- HRESULT HoursSpecified ([in] VARIANT_BOOL bHoursSpecified);
- [
- id(9),
- propget,
- helpstring("The Minutes component of the value (must be in the range 0-59)")
- ]
- HRESULT Minutes ([out, retval] long *iMinutes);
- [
- id(9),
- propput
- ]
- HRESULT Minutes ([in] long iMinutes);
- [
- id(10),
- propget,
- helpstring("Whether the Minutes component is specified")
- ]
- HRESULT MinutesSpecified ([out, retval] VARIANT_BOOL *bMinutesSpecified);
- [
- id(10),
- propput
- ]
- HRESULT MinutesSpecified ([in] VARIANT_BOOL bMinutesSpecified);
- [
- id(11),
- propget,
- helpstring("The Seconds component of the value (must be in the range 0-59)")
- ]
- HRESULT Seconds ([out, retval] long *iSeconds);
- [
- id(11),
- propput
- ]
- HRESULT Seconds ([in] long iSeconds);
- [
- id(12),
- propget,
- helpstring("Whether the Seconds component is specified")
- ]
- HRESULT SecondsSpecified ([out, retval] VARIANT_BOOL *bSecondsSpecified);
- [
- id(12),
- propput
- ]
- HRESULT SecondsSpecified ([in] VARIANT_BOOL bSecondsSpecified);
- [
- id(13),
- propget,
- helpstring("The Microseconds component of the value (must be in the range 0-999999)")
- ]
- HRESULT Microseconds ([out, retval] long *iMicroseconds);
- [
- id(13),
- propput
- ]
- HRESULT Microseconds ([in] long iMicroseconds);
- [
- id(14),
- propget,
- helpstring("Whether the Microseconds component is specified")
- ]
- HRESULT MicrosecondsSpecified ([out, retval] VARIANT_BOOL *bMicrosecondsSpecified);
- [
- id(14),
- propput
- ]
- HRESULT MicrosecondsSpecified ([in] VARIANT_BOOL bMicrosecondsSpecified);
- [
- id(15),
- propget,
- helpstring("The UTC component of the value (must be in the range -720 to 720)")
- ]
- HRESULT UTC ([out, retval] long *iUTC);
- [
- id(15),
- propput
- ]
- HRESULT UTC ([in] long iUTC);
- [
- id(16),
- propget,
- helpstring("Whether the UTC component is specified")
- ]
- HRESULT UTCSpecified ([out, retval] VARIANT_BOOL *bUTCSpecified);
- [
- id(16),
- propput
- ]
- HRESULT UTCSpecified ([in] VARIANT_BOOL bUTCSpecified);
- [
- id(17),
- propget,
- helpstring("Indicates whether this value describes an absolute date and time or is an interval")
- ]
- HRESULT IsInterval ([out, retval] VARIANT_BOOL *bIsInterval);
-
- [
- id(17),
- propput
- ]
- HRESULT IsInterval ([in] VARIANT_BOOL bIsInterval);
- [
- id(18),
- helpstring("Retrieve value in Variant compatible (VT_DATE) format")
- ]
- HRESULT GetVarDate (
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsLocal,
- [out, retval] DATE *dVarDate
- );
-
- [
- id(19),
- helpstring("Set the value using Variant compatible (VT_DATE) format")
- ]
- HRESULT SetVarDate (
- [in] DATE dVarDate,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsLocal
- );
- [
- id(20),
- helpstring("Retrieve value in FILETIME compatible string representation")
- ]
- HRESULT GetFileTime (
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsLocal,
- [out, retval] BSTR *strFileTime
- );
-
- [
- id(21),
- helpstring("Set the value using FILETIME compatible string representation")
- ]
- HRESULT SetFileTime (
- [in] BSTR strFileTime,
- [in, defaultvalue(TRUE)] VARIANT_BOOL bIsLocal
- );
- };
- /* ISWbemRefreshableItem defines an item in a refresher */
- [
- object,
- local,
- uuid(5AD4BF92-DAAB-11d3-B38F-00105A1F473A),
- oleautomation,
- dual,
- nonextensible,
- helpstring("A single item in a Refresher")
- ]
- interface ISWbemRefreshableItem : IDispatch
- {
- [
- id(1),
- propget,
- helpstring("The index of this item in the parent refresher")
- ]
- HRESULT Index (
- [out, retval] long *iIndex
- );
- [
- id(2),
- propget,
- helpstring("The parent refresher")
- ]
- HRESULT Refresher (
- [out, retval] ISWbemRefresher **objWbemRefresher
- );
- [
- id(3),
- propget,
- helpstring("Whether this item represents a single object or an object set")
- ]
- HRESULT IsSet (
- [out, retval] VARIANT_BOOL *bIsSet
- );
- [
- id(4),
- propget,
- helpstring("The object")
- ]
- HRESULT Object (
- [out, retval] ISWbemObjectEx **objWbemObject
- );
- [
- id(5),
- propget,
- helpstring("The object set")
- ]
- HRESULT ObjectSet (
- [out, retval] ISWbemObjectSet **objWbemObjectSet
- );
- [
- id(6),
- helpstring("Remove this item from the parent refresher")
- ]
- HRESULT Remove (
- [in, defaultvalue(0)] long iFlags
- );
- };
- /* ISWbemRefresher provides an object refresher collection */
- [
- object,
- local,
- uuid(14D8250E-D9C2-11d3-B38F-00105A1F473A),
- oleautomation,
- dual,
- nonextensible,
- helpstring("A Collection of Refreshable Objects")
- ]
- interface ISWbemRefresher : IDispatch
- {
- /* These are used in the context of collections */
- [
- id(DISPID_NEWENUM),
- propget,
- restricted
- ]
- HRESULT _NewEnum (
- [out, retval] IUnknown **pUnk
- );
- [
- id(DISPID_VALUE),
- helpstring("Get an item from this refresher")
- ]
- HRESULT Item (
- [in] long iIndex,
- [out, retval] ISWbemRefreshableItem **objWbemRefreshableItem
- );
- [
- id(1),
- propget,
- helpstring("The number of items in this refresher")
- ]
- HRESULT Count (
- [out, retval] long *iCount
- );
- [
- id(2),
- helpstring("Add a refreshable instance to this refresher")
- ]
- HRESULT Add (
- [in] ISWbemServicesEx *objWbemServices,
- [in] BSTR bsInstancePath,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemRefreshableItem **objWbemRefreshableItem
- );
- [
- id(3),
- helpstring("Add a refreshable enumerator to this refresher")
- ]
- HRESULT AddEnum (
- [in] ISWbemServicesEx *objWbemServices,
- [in] BSTR bsClassName,
- [in, defaultvalue(0)] long iFlags,
- [in, defaultvalue(0)] /*ISWbemNamedValueSet*/ IDispatch *objWbemNamedValueSet,
- [out, retval] ISWbemRefreshableItem **objWbemRefreshableItem
- );
- [
- id(4),
- helpstring("Remove an item from this refresher")
- ]
- HRESULT Remove (
- [in] long iIndex,
- [in, defaultvalue(0)] long iFlags
- );
- [
- id(5),
- helpstring("Refresh all items in this collection")
- ]
- HRESULT Refresh (
- [in, defaultvalue(0)] long iFlags
- );
-
- [
- id(6),
- propget,
- helpstring("Whether to attempt auto-reconnection to a remote provider")
- ]
- HRESULT AutoReconnect (
- [out, retval] VARIANT_BOOL *bCount
- );
- [
- id(6),
- propput
- ]
- HRESULT AutoReconnect (
- [in] VARIANT_BOOL bCount
- );
- [
- id(7),
- helpstring("Delete all items in this collection")
- ]
- HRESULT DeleteAll();
- };
|