problem in setting linename in tsp

problem in setting linename in tsp

NewsGroups | Search | Tools
 comp.dcom.telecom.tech  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
problem in setting linename in tsp nick 06-28-2006
Posted by nick on June 28, 2006, 6:24 am
If you were  Registered and logged in, you could reply and use other advanced thread options


Iam creating a tsp in delphi. The problem is to set the device name.
I have got the source to set the name. but it is in 'C'. can anyone
help
to convert this code into delphi or provide some suggestion to set the
name

LONG TSPIAPI TSPI_lineGetDevCaps(DWORD dwDeviceID,DWORD dwTSPIVersion,



DWORD dwExtVersion, LPLINEDEVCAPS pldc)
{
LONG tr-0;
const wchar_t szProviderInfo[]=L"WAVE Service provider";
const wchar_t szLineName[]=L"WaveLine";


pldc->dwNeededSize=sizeof(LINEDEVCAPS) + sizeof(szProviderInfo) +


sizeof(szLineName);
if(pldc->dwNeededSize<=pldc->dwTotalSize)
{
pldc->dwUsedSize=pldc->dwNeededSize;
pldc->dwProviderInfoOffset=sizeof(szProviderInfo);


wchar_t* pszProviderInfo=(wchar_t*)((BYTE*)pldc +


pldc->dwProviderInfoOffset);
wcscpy(pszProviderInfo,szProviderInfo);
pldc->dwLineNameSize=sizeof(szLineName);
pldc->dwLineNameOffset=sizeof(LINEDEVCAPS)+sizeof(szProviderInfo);
wchar_t* pszLineName=(wchar_t*)((BYTE*)pldc+pldc->dwLineNameOffset);
wcscpy(pszLineName,szLineName);



}
}


Thanks in Advance


Similar ThreadsPosted
E1 IMA seriously problem May 9, 2006, 10:42 am
Problem. December 21, 2006, 8:07 am
Another odd SX2000 Problem July 11, 2005, 2:00 am
Problem With TD1232 January 17, 2006, 5:48 pm
no carrier problem September 14, 2006, 3:51 pm
voicemail integration problem June 26, 2005, 7:12 pm
Please Help - very strange ISDN problem January 25, 2006, 11:37 pm
MITEL SX50 PROBLEM July 16, 2006, 7:00 am
Need Info Re A/C 650 Dialing Problem August 9, 2006, 7:06 pm
Problem with EZ Advantage Call-A-Matic Plus September 3, 2005, 12:28 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map