JoeH wrote:
Hi,
I'm using a COM DLL (created in VB) in my javascript code and can
successfully call its methods and get/set its properties. There are
also some Public enumerations defined in the ActiveX DLL I'd like to
access -- is this possible?
Not being an expert, my best bet would be to use an Enumerator (JScript
specific).
The following short example may get you started:
var wmi = new
Enumerator(GetObject("winmgmts:").InstancesOf("Win 32_process"));
for( ; !wmi.atEnd(); wmi.moveNext() )
{
var process = wmi.item();
alert( "process.name" );
}
I've told that this Enumerator stuff helps iterating (using atEnd,
moveNext and Item) through COM enumerations.
Hope this helps,
Alexis