Re: hardware detection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can get that information. The same way you can get it from any network controller
card (I've fogotten, but the information *is* available). So you get the PnP notification
because you've registered it; then you issue the appropriate network APIs to get the
controller information. The question of how to get the MAC address has been answered here
in the past, but since I haven't done that, I've forgotten what the answers are.
joe

On Tue, 26 Dec 2006 19:56:42 -0800, "Z.K." <nospam@xxxxxxxxxx> wrote:

Okay thanks. I thought that since Windows sees the Bluetooth Device and
if I click on the generic bluetooth radio and properties I get the MAC
address that I could somehow extract that information that windows is
displaying. Apparently I guess that is not possible if I understand
what you are saying. Thanks for the information anyway. I thought this
would be something simple since all I need to do is extract the MAC
Address and not communicate with another bluetooth device; Apparently,
that is not so, but thanks again for the info. I was wondering though
if you could suggest a good book for extracting hardware information
from windows. I know this encompasses a lot of different devices, but
since device manager seems to have the information that I need, surely
this must be possible even if I am unfamiliar with how to do this.

Z.K.

Joseph M. Newcomer wrote:
You can register to get device notifications. After that, you're on your own to deal with
the device. BlueTooth looks like a network, and uses sockets.

"Extracting hardware information" is a very broad question, and is a much more general
question than how to get a MAC address.

Look at WM_DEVICECHANGE to see about getting notifications, and follow the See Also to
Device Notification Overview, and click downward to the article on registering for device
notifications.
joe

On Mon, 25 Dec 2006 01:32:16 -0800, "Z.K." <nospam@xxxxxxxxxx> wrote:


I need to write a program where I insert a bluetooth radio and get its
MAC Address. I was thinking I needed to use the bluetoothAPIs, but then
I began to wonder if it is just a hardware detection problem. Either
way I am kind of stuck. In order to use the bluetoothAPIs I have read
that I need to open a socket of some kind which I have never done and I
am not sure how to extract hardware information either. If anyone could
help or point me to a web site that would be great. I have tried
searching MSDN and the Internet for such information without much luck.

Z.K.

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: hardware detection
    ... if I click on the generic bluetooth radio and properties I get the MAC ... if you could suggest a good book for extracting hardware information ... that I need to open a socket of some kind which I have never done and I ...
    (microsoft.public.vc.mfc)
  • Re: Setting up Airport Express
    ... Those are different network interfaces. ... The Airport Express has two network interfaces: ... each of which has a MAC address. ... your Macintosh has Bluetooth, ...
    (uk.comp.sys.mac)
  • Re: hardware detection
    ... I thought that since Windows sees the Bluetooth Device and if I click on the generic bluetooth radio and properties I get the MAC address that I could somehow extract that information that windows is displaying. ... I was wondering though if you could suggest a good book for extracting hardware information from windows. ...
    (microsoft.public.vc.mfc)
  • Re: Question about ethernet addresses
    ... Running System Profiler yields the following for my G5's MAC address ... Opening the Network pane of my System Preferences gives me a completely ... different ethernet address: ... MAC address associated with Bluetooth, if you have properly configured the ...
    (comp.sys.mac.system)
  • Re: serial number (activation code)
    ... Hardware MAC addresses are intended to be as unique as possible. ... But there is no requirement that they be unique, and since you can arbitrarily set the MAC address on most network devices, they easily can be non-unique. ... Other devices like Bluetooth radios also can—and usually do—have MAC addresses, like in the case of a Bluetooth Personal Area Network. ...
    (microsoft.public.dotnet.languages.csharp)