Skip to content

Latest commit

 

History

History
141 lines (101 loc) · 5.86 KB

ne-wbemdisp-wbemflagenum.md

File metadata and controls

141 lines (101 loc) · 5.86 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:wbemdisp.WbemFlagEnum
WbemFlagEnum (wbemdisp.h)
Defines constants that are used by SWbemServices.ExecQuery, SWbemServices.ExecQueryAsync, SWbemServices.SubclassesOf, and SWbemServices.InstancesOf.
WbemFlagEnum
WbemFlagEnum enumeration [Windows Management Instrumentation]
_hmm_wbemflagenum
wbemFlagBidirectional
wbemFlagDontSendStatus
wbemFlagForwardOnly
wbemFlagNoErrorObject
wbemFlagReturnErrorObject
wbemFlagReturnImmediately
wbemFlagReturnWhenComplete
wbemFlagSendStatus
wbemFlagUseAmendedQualifiers
wbemdisp/WbemFlagEnum
wbemdisp/wbemFlagBidirectional
wbemdisp/wbemFlagDontSendStatus
wbemdisp/wbemFlagForwardOnly
wbemdisp/wbemFlagNoErrorObject
wbemdisp/wbemFlagReturnErrorObject
wbemdisp/wbemFlagReturnImmediately
wbemdisp/wbemFlagReturnWhenComplete
wbemdisp/wbemFlagSendStatus
wbemdisp/wbemFlagUseAmendedQualifiers
wmi.wbemflagenum
wmi\wbemflagenum.htm
wmi
51c54f70-9067-4523-9108-89af731b9d55
12/05/2018
WbemFlagEnum, WbemFlagEnum enumeration [Windows Management Instrumentation], _hmm_wbemflagenum, wbemFlagBidirectional, wbemFlagDontSendStatus, wbemFlagForwardOnly, wbemFlagNoErrorObject, wbemFlagReturnErrorObject, wbemFlagReturnImmediately, wbemFlagReturnWhenComplete, wbemFlagSendStatus, wbemFlagUseAmendedQualifiers, wbemdisp/WbemFlagEnum, wbemdisp/wbemFlagBidirectional, wbemdisp/wbemFlagDontSendStatus, wbemdisp/wbemFlagForwardOnly, wbemdisp/wbemFlagNoErrorObject, wbemdisp/wbemFlagReturnErrorObject, wbemdisp/wbemFlagReturnImmediately, wbemdisp/wbemFlagReturnWhenComplete, wbemdisp/wbemFlagSendStatus, wbemdisp/wbemFlagUseAmendedQualifiers, wmi.wbemflagenum
wbemdisp.h
Windows
Windows Vista
Windows Server 2008
Wbemdisp.idl
Windows
WbemFlagEnum
19H1
WbemFlagEnum
wbemdisp/WbemFlagEnum
c++
APIRef
kbSyntax
HeaderDef
Wbemdisp.h
WbemFlagEnum

WbemFlagEnum enumeration

-description

The WbemFlagEnum enumeration defines constants that are used by SWbemServices.ExecQuery, SWbemServices.ExecQueryAsync, SWbemServices.SubclassesOf, and SWbemServices.InstancesOf.

The WMI scripting type library, wbemdisp.tlb, defines these constants. Visual Basic applications can access this library; script languages must use the value of the constant directly, unless they use the Windows Script Host (WSH) XML file format. For more information, see Using the WMI Scripting Type Library.

-enum-fields

-field wbemFlagReturnImmediately:0x10

Causes the call to return immediately.

-field wbemFlagReturnWhenComplete:0

Causes this call to block until the call has completed.

-field wbemFlagBidirectional:0

Causes WMI to retain pointers to objects of the enumeration until the client releases the enumerator.

-field wbemFlagForwardOnly:0x20

Causes a forward-only enumerator to be returned. Use this flag in combination with wbemFlagReturnImmediately to request semisynchronous access. For more information, see Calling a Method.

You can only iterate (as in a VBScript For Each statement) through a forward-only enumerator one time. The memory containing the instances is released by WMI so that the enumerator cannot be rewound. Therefore, the SWbemObjectSet.Count method cannot be used since it requires rewinding the enumerator.

Forward-only enumerators are generally much faster and use less memory than conventional enumerators, but they do not allow calls to SWbemObject.Clone.

-field wbemFlagNoErrorObject:0x40

This flag must not be set, and must be ignored on receipt.

-field wbemFlagReturnErrorObject:0

Causes asynchronous calls to return an error object in the event of an error.

-field wbemFlagSendStatus:0x80

Causes asynchronous calls to send status updates to the SWbemSink.OnProgress event handler for your object sink.

-field wbemFlagDontSendStatus:0

Prevents asynchronous calls from sending status updates to the SWbemSink.OnProgress event handler for your object sink.

-field wbemFlagEnsureLocatable:0x100

-field wbemFlagDirectRead:0x200

-field wbemFlagSendOnlySelected:0

-field wbemFlagUseAmendedQualifiers:0x20000

Causes WMI to return class amendment data along with the base class definition. For more information about amended qualifiers, see Localizing WMI Class Information.

-field wbemFlagGetDefault:0

-field wbemFlagSpawnInstance:0x1

-field wbemFlagUseCurrentTime:0x1

-see-also

Calling a Method

Making a Semisynchronous Call with VBScript

Scripting API Constants