Re: No valid handle from lineGetID(.. "comm/datamodem") after dialing remote. Please Help.

From: Grant Schenck (schenckg_at_optonline.net)
Date: 02/12/04


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
>
>


Relevant Pages

  • Re: Affordable IP KVMs?
    ... modem, how are you connecting to the modem? ... >>When combined with a remote power switch, and NIC's with boot ROM's, ... >>If you're only working with one remote server, a modem and a headless MB ...
    (freebsd-isp)
  • Re: Received fax errors after running SFC.exe
    ... everything is being done on the server. ... What is the exact brand and model of the fax modem? ... "Reception error" "The remote fax machine did not respond in time, ...
    (microsoft.public.windows.server.sbs)
  • Re: Received fax errors after running SFC.exe
    ... everything is being done on the server. ... What is the exact brand and model of the fax modem? ... "Reception error" "The remote fax machine did not respond in time, ...
    (microsoft.public.windows.server.sbs)
  • Re: Problems with Dial-Up Remote access
    ... access functionality on the server. ... Eactly what do you need to accomplish with your remote access (share files, ... Is dial-up all you have available at your server for Internet access? ... I'n installed an external USB modem onto the server in one ...
    (microsoft.public.windows.server.sbs)
  • Re: Unable to edit / list using crontab -- for HUGH
    ... Re: USRobotics Modem Driver ... there are virutal hosts running on that server ... >> web site. ...
    (RedHat)