Windows API Guide: GetTickCount Function


Type HOSTENT h_name As Long h_aliases As Long h_addrtype As Integer h_length As Integer h_addr_list As Long End Type

Description & Usage

The HOSTENT structure stores information about a host computer on a network. Most of the information in the structure is stored as a set of pointers to the actual data.

Visual Basic-Specific Issues

To access the data pointed to by the structure, it is necessary to use functions such as CopyMemory, lstrcpy, and lstrlen to copy the data into the appropriate variables. See the example for gethostbyname for a demonstration of how this is done.

Data Members

h_name
A pointer to a null-terminated string specifying the fully-qualified domain name of the host computer.
h_aliases
A pointer to a null-terminated array of alternate domain names for the host computer.
h_addrtype
The address family of the base protocol used by the network.
h_length
The length in bytes of each address pointed to by h_addr_list.
h_addr_list
A pointer to a null-terminated list of addresses for the host computer. The addresses are returned in network byte order.

Used By

gethostbyaddr, gethostbyname

Back to the Structure list.
Back to the Reference section.


Last Modified: December 17, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/h/hostent.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net