Solved

How does lineGetID return File Handle?

Posted on 1998-06-29
5
185 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand to include initial dialog with two choices. 9 94
Define unique primary key 9 100
mapBully challenge 6 200
wordmultiple challenge 12 170
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

751 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