Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help.
From: Grant Schenck (schenckg_at_optonline.net)
Date: 02/12/04
- Next message: Grant Schenck: "Re: Forwarding Notification"
- Previous message: Grant Schenck: "Re: Conference Calls"
- In reply to: Karsten Strobel: "No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 13:09:56 -0500
Won't work.
The MS Remote TSP will only remote call control, not data or wave
features.
I suspect that lineGetID is going through to the server and coming
back with a value relevant to that server, not the client where you
are invoking the function.
-- Grant Schenck Grant Schenck Software schenckg@optonline.net http://grantschenck.tripod.com "Karsten Strobel" <strobel@ait-augsburg.de> wrote in message news:uzDPMmV8DHA.3052@TK2MSFTNGP09.phx.gbl... > Hi All, > > I have a big problem with accessing remote modems and I really hope someout > here can help me. > > I have a data modem attached to a Windows NT Server 4.0 SP6a. I want to do a > data call from a client PC (Windows 2000 Prof) using that modem over the > RemoteSP.TSP. All what I am doing seems to work well when I'm using a local > modem, but the remote case gives me headache. > > After successfully calling lineMakeCall(), having received the LINE_REPLY > for that call, I receive a LINE_CALLSTATE callback with > dwParam1=LINECALLSTATE_CONNECTED. So far, no problems. > > Then, when I lineGetID() with dwSelect=LINECALLSELECT_CALL, hCall=my call > handle and lpszDeviceClass="comm/datamodem", I can access the comm. handle > (hComm) and the device name string from the returned VARSTRING structure. > The hComm handle seems to be a reasonable value (something like 304 or 411 > or so), but in fakt it is not valid. > > Of course, I cannot really expected to get a hComm handle of the > communication port which I can directely access from the client, since the > hardware is connected to the server and is not local to the client. I was > expecting to get something like a named pipe handle which would allow me to > transparentely communicate over the modem using ReadFileEx/WriteFileEx as I > would do with a local device. However, every such call to > ReadFileEx/WriteFileEx ect. fails with a "invalid handle" error result. > > So what kind of a hComm handle does the RemoteSP.TSP give me? How can I use > it or what must I do in order to send or receive data to or from the > connected data modem? > > Thanks for your help!! > > Best Regards > Karsten > >
- Next message: Grant Schenck: "Re: Forwarding Notification"
- Previous message: Grant Schenck: "Re: Conference Calls"
- In reply to: Karsten Strobel: "No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|