Solved

How does lineGetID return File Handle?

Posted on 1998-06-29
5
181 Views
Last Modified: 2013-11-20
Hi,

Sorry for troubling you all. I know my only help in TAPI. I had tried to understand the Tapicomm source codes as well as my best to find where it extract the filehandle from lineGetID but I failed to find the right one. It had troubling me for weeks.

I know it sound stupid. May I know how does lineGetID return file handle? Where? in the VARSTRING? Please explain a bit on how the file handle return from lineGetID. Which one is needed by the writefile and readfile function?

Million thanks for you kind reply.

LIM CHAN HIN
0
Comment
Question by:chanhin
  • 3
5 Comments
 
LVL 2

Expert Comment

by:kinkajou
ID: 1318488
The only handles that lineGetID() returns are hLine - a handle to an open line device and hCall - a handle to a call, for LONG lineGetID ( HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect, LPVARSTRING lpDeviceID, LPCSTR lpszDeviceClass );

The VARSTRING structure is used for returning variably sized strings. It is used both by the line device class and the phone device class.

typedef struct varstring_tag {
    DWORD  dwTotalSize;
    DWORD  dwNeededSize;
    DWORD  dwUsedSize;
    DWORD  dwStringFormat;
    DWORD  dwStringSize;
    DWORD  dwStringOffset;
} VARSTRING, FAR *LPVARSTRING;
 
A pointer to a memory location of type VARSTRING, where the device identifier is returned. Upon successful completion of the request, this location is filled with the device identifier. The format of the returned information depends on the method used by the device class API for naming devices. Prior to calling lineGetID, the application should set the dwTotalSize member of this structure to indicate the amount of memory available to TAPI for returning information.
0
 
LVL 2

Accepted Solution

by:
kinkajou earned 50 total points
ID: 1318489
chanhin, did my comment above answer your question?
0
 

Author Comment

by:chanhin
ID: 1318490
I thank you him for answering my question. However, he didn't answer to my question IMHO. At least the answer isn't what I am looking for.

Sorry for being rude. He is good in explaning but just not to the question. Millions thank for your answer anyway. However, I had done it with myself (tried and error). I am a happy man now :)
0
 
LVL 2

Expert Comment

by:kinkajou
ID: 1318491
The procedure here is to comment and reject when the answer isn't what you want. I did not need your "D" grade or your acceptance of my answer. Thanks for nothing.
0
 
LVL 1

Expert Comment

by:Grailman
ID: 2637580
Chanhin, can you post the code which solved your problem? I'm trying to play wav files over the phone and am having problems as well.

Thanks,
Grailman
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 85
Rewrite URL With Encoded Characters 6 75
zeroMAx challenge 20 88
Making an alias 7 80
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now