Change local name of bluetooth module

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



I have to change the local name of my bluetooth device. Changing the
host name by calling sethostname and rebooting the system didn't solve
the problem. If I search my device the device name stays as it was
before.
Then I tried to change the name by using HCI commands
(HCI_Read_Local_Name, HCI_Change_Local_Name).

DWORD dwErrorCode = 0;
HANDLE hDev = CreateFile(L"BTD0:", GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL);

if (hDev != INVALID_HANDLE_VALUE)
{
DWORD dwSizeOut;
if(!DeviceIoControl (hDev,HCI_Read_Local_Name, NULL, 0, pszName,
249,&dwSizeOut, NULL))
{
dwErrorCode = GetLastError();
}
CloseHandle(hDev);
}

Unfortunatly I always recieve error code 87 which means The parameter
is incorrect.

Thanks in advance for any ideas.

Markus
.



Relevant Pages

  • Re: changing linux hostname without rebooting
    ... > How can I change the prompt of the linux hostname without rebooting ... I've noticed that various system startup scripts use the boot-time ... host name when configuring the system. ...
    (comp.os.linux.networking)
  • Re: Duplicate Host (A) Records
    ... Seemed to of solved the problem by rebooting the host, ... Having looked at the two DNS entries in detail, ... had cached the old IP address somehow and was registering both the old and ...
    (microsoft.public.windows.server.dns)
  • Re: RDP Session
    ... The host PC isn't rebooting I've checked the log events. ... The re-connect window appears if I ping the host after the vpn is ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: changing linux hostname without rebooting
    ... I've noticed that various system startup scripts use the boot-time ... > host name when configuring the system. ...
    (comp.os.linux.networking)