PC Review
Forums
Newsgroups
Windows XP
Windows XP WMI
bug or not bug?
Forums
Newsgroups
Windows XP
Windows XP WMI
bug or not bug?
![]() |
bug or not bug? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 ![]() |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 ![]() |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 ![]() |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 



