Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > MANAGEMENT TECHNOLOGIES (TECHNET) > Is network adapter wireless
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 9th August 20:22
thomas blomqvist
External User
 
Posts: 1
Default Is network adapter wireless


Hi all,

I am trying to find out if a network adapter is wireless or not. It would be
very simple if Win32_NetworkAdapter.AdapterTypeID always returned 9
(wireless) for a wireless adapter, but as far as I have seen it often return
0 (802.3) instead.

The best solution I have come up with so far is the Delphi code below, but
since the Win32_NetworkAdapter.Description can contain just about anything
this is not a stable solution.

if (Win32_NetworkAdapter.AdapterTypeID = 9) or
(Pos('WIRELESS',UpperCase(Win32_NetworkAdapter.Des cription))>0) or
(Pos('802.11',UpperCase(Win32_NetworkAdapter.Descr iption))>0) or
(Pos('WLAN',UpperCase(Win32_NetworkAdapter.Descrip tion))>0) then
Result := true

Does anyone have a bettersolution that always works?

Thanks in advance,
Thomas Blomqvist
  Reply With Quote


  sponsored links


2 23rd December 20:25
thomas blomqvist
External User
 
Posts: 1
Default Is network adapter wireless


Hi all,

I am trying to find out if a network adapter is wireless or not. It would be
very simple if Win32_NetworkAdapter.AdapterTypeID always returned 9
(wireless) for a wireless adapter, but as far as I have seen it often return
0 (802.3) instead.

The best solution I have come up with so far is the Delphi code below, but
since the Win32_NetworkAdapter.Description can contain just about anything
this is not a stable solution.

if (Win32_NetworkAdapter.AdapterTypeID = 9) or
(Pos('WIRELESS',UpperCase(Win32_NetworkAdapter.Des cription))>0) or
(Pos('802.11',UpperCase(Win32_NetworkAdapter.Descr iption))>0) or
(Pos('WLAN',UpperCase(Win32_NetworkAdapter.Descrip tion))>0) then
Result := true

Does anyone have a bettersolution that always works?

Thanks in advance,
Thomas Blomqvist
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666