PC Review Forums Newsgroups Windows XP Windows XP WMI bug or not bug?

Reply

bug or not bug?

 
Thread Tools Rate Thread
Old 29-07-2004, 10:15 PM   #1
SnakeS
Guest
 
Posts: n/a
Default bug or not bug?


From Win32_NetworkAdapter I see the index of network device into register,
but the index of one device selected, it isn't present.
Win32_NetworkAdapter.Index return 524291and into register there isn't.

Why? Bug WMI Win32_NetworkAdapter?

If the index isn't present how tha class can view this device?

mmm

thanks in advance
  Reply With Quote
Old 30-07-2004, 02:10 PM   #2
Viatcheslav V. Vassiliev
Guest
 
Posts: n/a
Default Re: bug or not bug?

How do you get index property? If you use C++ or other low-level language,
check type of returned Variant - it could be VT_BSTR and in this case you
should convert it into interger.

//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE

"SnakeS" <snakes_csharp@hotmail.com> ???????/???????? ? ???????? ?????????:
news:bb07bb4a.0407291415.14a98966@posting.google.com...
> From Win32_NetworkAdapter I see the index of network device into

register,
> but the index of one device selected, it isn't present.
> Win32_NetworkAdapter.Index return 524291and into register there isn't.
>
> Why? Bug WMI Win32_NetworkAdapter?
>
> If the index isn't present how tha class can view this device?
>
> mmm
>
> thanks in advance



  Reply With Quote
Old 30-07-2004, 07:13 PM   #3
SnakeS
Guest
 
Posts: n/a
Default Re: bug or not bug?

No, you don't understand.

My application running on some computer and it always ok, exception do
on one only machine in one only device network return an index of that
value.

If I read the register at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\

I don't see the device with that index ... it happened only once.. and
in one only computer...

now ... what do I?

Sorry for my bad english.

Thanks in advance!

"Viatcheslav V. Vassiliev" <msnewsgroup@www-sharp.com> wrote in message news:<e8gGs7jdEHA.2376@tk2msftngp13.phx.gbl>...
> How do you get index property? If you use C++ or other low-level language,
> check type of returned Variant - it could be VT_BSTR and in this case you
> should convert it into interger.
>
> //------------------------------------
> Regards,
> Vassiliev V. V.
> http://www-sharp.com -
> Scripting/HTA/.Net Framework IDE
>
> "SnakeS" <snakes_csharp@hotmail.com> ???????/???????? ? ???????? ?????????:
> news:bb07bb4a.0407291415.14a98966@posting.google.com...
> > From Win32_NetworkAdapter I see the index of network device into

> register,
> > but the index of one device selected, it isn't present.
> > Win32_NetworkAdapter.Index return 524291and into register there isn't.
> >
> > Why? Bug WMI Win32_NetworkAdapter?
> >
> > If the index isn't present how tha class can view this device?
> >
> > mmm
> >
> > thanks in advance

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off