Article View: borland.public.cppbuilder.nativeapi
Article #17432TAPI events
From: Roberto
Date: Mon, 24 Mar 2003 20:48
Date: Mon, 24 Mar 2003 20:48
54 lines
2098 bytes
2098 bytes
I received the message LINE_APPNEWCALL get the hCall in
dwParam2 and hLine in hDevice them I used lineGetID() to get the hCom , but
the SetCommMask() is return "Invalid Identifier"
I put the below code when I receve the message LINE_CALLSTATE ;
LINECALLSTATE_CONNECTED or LINECALLSTATE_OFFERING , but don't work
What is missing ?
Thanx in advance
Roberto
// ------------------------------------------------------------
pDeviceIDinfo=(VARSTRING*)LocalAlloc(LPTR,sizeof(VARSTRING)+100);
ZeroMemory(pDeviceIDinfo, sizeof(VARSTRING)+100);
pDeviceIDinfo->dwTotalSize=sizeof(VARSTRING)+100;
struct FCOMM {VARSTRING var1; HANDLE hCom; CHAR pchar[1];} *Fcomm;
if((erro=lineGetID(G_hLineIN,NULL,hCall ,LINECALLSELECT_CALL
,pDeviceIDinfo,"comm/datamodem"))<0)
// handle error
else{
Fcomm=(FCOMM*)pDeviceIDinfo;
hCom=Fcomm->hCom;
var=Fcomm->pchar;
G_Memo->Lines->Append(" lineGetID comm/datamodem= "+var);
}
if(SetCommMask(hCom,EV_RING | EV_CTS | EV_DSR )==0){
G_Memo->Lines->Append(" ERROR in SetCommMask "+ERROR(GetLastError()));
}
// ------------------------------------------------------------
Technical Details
Message-ID:
<3e7f6f0a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,66784fbb1193fccc,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-24 12:53:02 PST From: "Roberto" <casa@charao.com.br> Newsgroups: borland.public.cppbuilder.nativeapi Subject: TAPI events Date: Mon, 24 Mar 2003 17:48:03 -0300 Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 200.148.45.213 Message-ID: <3e7f6f0a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048538890 200.148.45.213 (24 Mar 2003 12:48:10 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail