No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help.
From: Karsten Strobel (strobel_at_ait-augsburg.de)
Date: 02/12/04
- Next message: Frantisek Rysanek: "Re: Dialogic BLT ISA vs. Intel 845, AWARD BIOS, W2K"
- Previous message: Graham: "Re: Forwarding Notification"
- Next in thread: Grant Schenck: "Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Reply: Grant Schenck: "Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 12:16:20 +0100
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: Frantisek Rysanek: "Re: Dialogic BLT ISA vs. Intel 845, AWARD BIOS, W2K"
- Previous message: Graham: "Re: Forwarding Notification"
- Next in thread: Grant Schenck: "Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Reply: Grant Schenck: "Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|