Solved

How does lineGetID return File Handle?

Posted on 1998-06-29
5
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.

749 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