Win9x question...

Chris Tresco rardoe at rarcom.com
Wed Jun 26 14:41:22 EDT 2002


It is probably important to note that windows (and unix) machines can
contain multiple names... eg.  NetBIOS name, DNS name

If this basic program is going to be run network-wide, you probably have a
server you can query for the name you want.

If it is a NetBIOS name:

You can grab it from a WINS server or from the registry.

DNS name:

DNS server or ipconfig /all

Chris

ps.. if I may ask... why in the world are you using basic??

----- Original Message -----
From: "Jerry Feldman" <gaf at blu.org>
To: <discuss at blu.org>
Sent: Wednesday, June 26, 2002 2:32 PM
Subject: Re: Win9x question...


> I think you still need to put this in context. Kevin is writing a program.
> It is easy to find this informaiton by hand, more difficult to get it
> programatically. I can generally answer much of the programming questions
> in C or C++ but not in terms of a BASIC dialect I don't know.
> >From a program there are roughtly 3 ways:
> 1. Directly through an API. (best way)
> 2. Indirectly by calling a standard command and parsing the output.
> 3. By looking at Windows internal structures. I consider the Registry as
an
> internal structure in this context).
>
> Host names are generally associated with each interface. On Windows, there
> are pseudo interfaces. So you need to find the one associated with the NIC
> or the IP address, or on a LAN without IP, the appropriate host name, also
> associatred with a NIC card.
> On 26 Jun 2002 at 13:46, Warren E. Agin wrote:
>
> > I can confirm the first one. The second is likely dependent on the
networking configuration - my registry does not contain that setting option.
>
> --
> Jerry Feldman <gaf at blu.org>
> Associate Director
> Boston Linux and Unix user group
> http://www.blu.org PGP key id:C5061EA9
> PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
>
>




More information about the Discuss mailing list