Home > Archive > Smartphone Developer Forum > January 2005 > Re: Change the bluetooth name
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Change the bluetooth name
|
|
| AmirCo 2005-01-23, 4:04 pm |
| Did you find any solution ?
Oualid MEKRAZ wrote:
> Hi all,
> Anyone know how to programmatically notify bluetooth that the bluetooth name
> has change?
> To change the bluetooth name in the registry I use:
> unsigned long type = REG_SZ;
>
RegOpenKeyEx(HKEY_CURRENT_USER,_T("\Software\Microsoft\Bluetooth\Settings"),0,0,&key);
> RegQueryValueEx(key,_T("LocalName"),0,&type,(PBYTE)btName,&size);
> RegSetValueEx(key,_T("LocalName"),0,REG_SZ,(PBYTE)NewBtName,size);
> but this change has no effect.
> Thanks your any advice!!
| |
| Oualid MEKRAZ 2005-01-23, 4:04 pm |
| No
"AmirCo" wrote:
> Did you find any solution ?
>
> Oualid MEKRAZ wrote:
>
>
>
>
>
> RegOpenKeyEx(HKEY_CURRENT_USER,_T("\Software\Microsoft\Bluetooth\Settings"),0,0,&key);
>
>
>
>
>
>
>
|
|
|
|
|