>I am developing an application for Search & Rescue (SAR) which enables multiple PC's to be networked together at a SAR operations site. Most of the users are unfamiliar with networking and each SAR mission is temporary (a few hours to a few days) at wherever the operations site happens to be.
>
>I would like to be able to display on the VFP status bar whether the computer they are using is the host computer or a 'remote' hooked into the network, mainly to avoid the host being inadvertently shut down by the inexperienced users. Does anyone know of a command which displays whether the PC is the network host or the remote?
>
If by host you mean that the machine is providing common disk services to other machines, the UNC of the shared drive will either not resolve at all from the drive letter, or will resolve to \\
via the Win32API WNetGetConnection()
>Best wishes,
>
>Martin Colwell