Change local name of bluetooth module
- From: markus.moos@xxxxxx (Markus Moos)
- Date: 19 Jun 2005 23:59:15 -0700
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
.
- Follow-Ups:
- Re: Change local name of bluetooth module
- From: Markus Moos
- Re: Change local name of bluetooth module
- From: Anthony Pellerin
- RE: Change local name of bluetooth module
- From: "Fernando Gonzalez [MS]"
- Re: Change local name of bluetooth module
- Prev by Date: Problem with CETK 5.0 USB Port testing
- Next by Date: Re: " Excluded From Build "
- Previous by thread: Problem with CETK 5.0 USB Port testing
- Next by thread: RE: Change local name of bluetooth module
- Index(es):
Relevant Pages
|