[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

RegisterDevice Failed for Virtual Com

Asked by Frog153 in Bluetooth, Windows MobileProgramming, Pocket PC Other

Tags: Bluetooth Virtual Com

Im develop an application in windows mobile 5.I have take the BT_ADRR via WSALookupServiceNext and i m trying to register a virtual port for this bluetooth device
I have tries all the ports form 1-9 but nothing the RegisterDevire return 0
My code is:

PORTEMUPortParams pp;
memset (&pp, 0, sizeof(pp));

HANDLE bth;

pp.channel = 0;        //I don't know if this right
pp.flocal = FALSE;
pp.device = pbta->btAddr;               //Bluetooth Address
pp.uuidService = SerialPortServiceClass_UUID;    //defined in bt_sdp.h
pp.uiportflags = RFCOMM_PORT_FLAGS_REMOTE_DCB;  

WCHAR sComm[10] = _T("\0");

int i;
for(i = 9; i >= 0; i--){
      bth = RegisterDevice(L"COM", i , L"btd.dll", (DWORD)&pp);
      if(bth)
      break;
}    

Only in ports 0 and 1 return success but the CreateFile API  retrun INVALID_HANDLE_VALUE
Please help me!!!
 
Related Solutions
Keywords: RegisterDevice Failed for Virtual Com
 
Loading Advertisement...
 
[+][-]06/20/09 06:52 AM, ID: 24673741Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/20/09 07:29 AM, ID: 24673864Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/20/09 07:38 AM, ID: 24673897Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/20/09 07:40 AM, ID: 24673911Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/20/09 08:06 AM, ID: 24674018Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/20/09 08:48 AM, ID: 24674171Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/21/09 03:11 PM, ID: 24678833Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/21/09 03:29 PM, ID: 24678878Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/21/09 03:53 PM, ID: 24678948Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/21/09 04:02 PM, ID: 24678968Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/21/09 04:10 PM, ID: 24678986Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/22/09 02:51 PM, ID: 24686927Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/22/09 02:52 PM, ID: 24686944Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/22/09 06:37 PM, ID: 24688212Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/03/09 04:32 PM, ID: 24774934Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625