Bookmark this page:
Yahoo!
Windows Live
del.icio.us
digg
Netscape
|
|
||||||||||
|
Posted by nick on June 28, 2006, 6:24 am
Please log in for more 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);
wcscpy(pszLineName,szLineName);
pldc->dwLineNameOffset=sizeof(LINEDEVCAPS)+sizeof(szProviderInfo); wchar_t* pszLineName=(wchar_t*)((BYTE*)pldc+pldc->dwLineNameOffset); } } Thanks in Advance | ||||||||||
| Similar Threads | Posted |
| problem in setting linename in tsp | June 28, 2006, 6:24 am |
| setting up a T-1 | December 1, 2006, 8:04 pm |
| Timeout setting on PBX? | February 15, 2005, 10:39 pm |
| setting time : Panasonic kxt7433 | March 27, 2005, 6:34 am |
| Questions on setting up a new phone system | February 2, 2006, 2:06 pm |
| Setting up a small voip system | August 2, 2006, 2:10 pm |
| Inter-Tel 6.009 Setting up a distribution group. | November 7, 2006, 1:43 pm |
| HELP on 3600 MainStreet -setting T1 Frame type | October 8, 2006, 11:40 am |
| dx_sethook randomly not setting phone line back onhook | January 24, 2006, 10:29 pm |
| E1 IMA seriously problem | May 9, 2006, 10:42 am |
| Problem. | December 21, 2006, 8:07 am |
| ADPCM problem | August 3, 2004, 9:20 am |
| Another odd SX2000 Problem | July 11, 2005, 5:00 am |
| 2 way radio problem.... | October 19, 2004, 10:47 am |
| Problem With TD1232 | January 17, 2006, 2:48 pm |

problem in setting linename in tsp
Yahoo!
Windows Live
del.icio.us
digg
Netscape 