Solved

How does lineGetID return File Handle?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

12 Experts available now in Live!

Get 1:1 Help Now