Connecting to BT device 'by name'?

  • Thread starter Thread starter Leif Eirik Olsen
  • Start date Start date
L

Leif Eirik Olsen

Hi all,

Not sure this question is specific to CF, but in my PocketPc app I have the
following code to let my users select an available bluetooth device to
connect to :

PortHandle = CreateFile("Com6:", GENERIC_READ | GENERIC_WRITE, 0, 0,
OPEN_EXISTING, 0, 0);

The above code brings up the a system dialog box where user may select a
device.

Q: Is there anyway to avoid this dialogbox and always connect to a device
that I already know the name of?

The reason I 'need' this is that my application should only connect to our
own bluetooth enabeled antenne, thus the user should not need to be bothered
:)

regards,
Leo
 
Back
Top