From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffe3b,9bc4f2d419a7afaf X-Google-Attributes: gidffe3b,public X-Google-Thread: 108a34,9bc4f2d419a7afaf X-Google-Attributes: gid108a34,public X-Google-Thread: 1164f8,9bc4f2d419a7afaf X-Google-Attributes: gid1164f8,public From: kd9fb@xnet.com (Peter Mikalajunas) Subject: Re: Detecting LAT, Pathworks Date: 1995/08/05 Message-ID: <3vv6v3$8da@flood.xnet.com>#1/1 X-Deja-AN: 107555019 references: <3uccqp$1p9@cantua.canterbury.ac.nz> organization: XNet - A Full Service Internet Provider - (708) 983-6064 newsgroups: vmsnet.networks.desktop.pathworks,comp.sys.dec,comp.os.ms-windows.networking.misc In , agh@magi.com (Andre Hallam) wrote: AH>In article <3uccqp$1p9@cantua.canterbury.ac.nz>, AH> E.Havelaar@Regy.Canterbury.Ac.NZ (Ed Havelaar) wrote: AH>>Does anyone know how I can reliably detect the presence of the following from AH>>C (Borland or MSVC), from within Windows 3.x, WfW, NT, Win95...? AH>> - LAT services AH>> - Pathworks 4.X AH>> - Pathworks 5.X AH>> AH>For LAT, check the DOS environment variable NVTWIN. Should be 1 if LAT is used AH>with Windows. In one configuration, I run DNP and LAT. I do not use NVTWIN as an environment variable. AH>For Pathworks 4.X, check _SYSD. Should be equal to system service drive letter AH>if network is running. This simply tells you that the client is pointing to a network drive. It would be true whether or not the client uses LAT. For example if, as with many of our clients, the client is using NetBeui as the transport, it would still be true. NetBeui allows us to use Win NT's SMS to do remote client support and updates. AH>Could probably get network entries from the system.ini file using AH>GetPrivateProfileString. Which will not tell you if LAT is actually loaded. AH>Maybe there's even a DLL call to check the name of the running network. AH>For Pathworks 5.X - sorry, no ideas. Still on 4.2-1. Check the last Cdrom distrubition, Sept. '94. It contains the Pathworks SDK. In the samples there is terml.c. It shows how to use DOS interrupts to check for LAT and connect to a service using LAT. Unfortunately, even this method fails if the client is configured to do a EMSLOAD LAT. If you don't have the Cdrom, call your rep and request it. The only sure method, that I am aware of, is to 1.) Scan cfg0000.tpl's final section to see if LAT is supposed to load. 2.) Check for the DOS envirnoment variable _SYSD to see if the network has loaded. 3.) Call LAT driver and see if succeeds, there is always the possibility that the network failed after all the drivers have been loaded. Also, check any of the Simtel mirror for Ralph Brown's excellent interrupt list. He as several pages on Decnet. Peter Mikalajunas kd9fb@xnet.com http://www.xnet.com/~kd9fb