PC SOFT
ONLINE REPOSITORY
FOR WINDEVWEBDEV AND WINDEV MOBILE

Home |  | Sign in | English US
Network Tools
Published by Michael
in the category Tools
New features



Description
This WINDEV component will give you with tools to manipulate network interfaces and IP addresses.
The compressed file contains the component, the manufacturer database, the list of available functions and examples.
The database is used to know the manufacturer's name of a network interface based on its MAC address.
This component is still in development, so please feel free to submit your comments or suggestions to validate and improve this component.

With this component, you will be able to :

- Get the computer name associated with a local computer.
- Get the domain name in which a local computer is registered.
- Get the number of interfaces on the local computer, including the loopback interface.
- Get the index number for a network interface on the local computer.
- Get the name of a network interface.
- Get the description of a network interface.
- Get the user-friendly name of a network interface.
- Convert an user-friendly name of a network interface to an index number.
- Get the metric of a network interface.
- Find out whether a network interface uses automatic metric with IPv4 or IPv6.
- Find out whether IPv4 is enabled or disabled for a network interface.
- Find out whether IPv6 is enabled or disabled for a network interface.
- Find out whether a network interface is for hardware.
- Find out whether a connector is present on a network interface.
- Get the physical hardware address (MAC address) of a network interface.
- Check whether a character string corresponds to a Media Access Control (MAC) address format.
- Get the manufacturer name of the network interface for a MAC address.
- Get the type of a network interface.
- Get the operational status of a network interface.
- Get the connection state of a network interface.
- Find out whether a network interface is in a media-connected state.
- Get the administrative status of a network interface.
- Find out whether a network interface is administratively enabled or disabled.
- Get the index of a network interface that has the best route to join an IPv4 or IPv6 address.
- Find out whether IPv4 address auto-configuration (APIPA) is enabled or disable on a network interface.
- Find out whether IPv4 address is currently auto-configured by APIPA on a network interface.
- Get the number of IP addresses for a network interface.
- Get the IP address for a network interface.
- Get the prefix length (CIDR notation) for an IP address associated with a network interface.
- Get the subnet mask of an IPv4 address associated with a network interface.
- Get the origin of an IP address for a network interface.
- Get the number of gateways for a network interface.
- Get the IP address of a gateway for a network interface.
- Get the origin of a gateway IP address for a network interface.
- Get the number of DNS servers for a network interface.
- Get the IP address of a DNS server for a network interface.
- Get the origin of a DNS server IP address for a network interface.
- Get the number of DNS servers used by a local computer.
- Get the IPv4 address of a DNS server used by a local computer.
- Get the IP address of a DHCP server for a network interface.
- Get the end date and time of DHCP lease for an IP address on a network interface.
- Get the start date and time of DHCP lease for an IP address on a network interface.
- Get the lifetime of DHCP lease for an IP address on a network interface.
- Find out whether IP address on a network interface is currently auto-configured by a DHCP server.
- Find out whether a network interface supports managed address configuration using DHCP server.
- Get the speed of a network interface.
- Get the number of octets of data received for a network interface.
- Get the number of octets of data sent for a network interface.
- Find out whether a network interface supports Wake on LAN.
- Send a WOL magic packet on the local area network to wake a local computer.
- Get the public IP address for a local computer.
- Check whether a character string corresponds to an IPv4 address format.
- Check whether a character string corresponds to an IPv4 subnet mask format.
- Convert a character string corresponding to an IPv4 subnet mask into a prefix length (CIDR notation).
- Convert a prefix length (CIDR notation) into a character string corresponding to an IPv4 subnet mask.
- Transform a character string corresponding to an IPv4 subnet mask into a character string corresponding- to an IPv4 wildcard mask (inverse mask).
- Transform a character string corresponding to an IPv4 wildcard mask (inverse mask) into a character string corresponding to an IPv4 subnet mask.
- Convert a character string corresponding to an IPv4 address into a numeric value.
- Convert a numeric value into a character string corresponding to an IPv4 address.
- Convert an IPv4 address into a displayable binary string.
- Convert a string representing a binary value into an IPv4 address.
- Convert an IPv4 address into a displayable hexadecimal string.
- Convert a string representing a numeric value in hexadecimal into an IPv4 address.
- Transform an IPv4 network to an IPv4 address range.
- Transform a IPv4 address range to an IPv4 network.
- Compare two IPv4 addresses.
- Check whether an IPv4 address is part of an IPv4 address range.
- Get the network class for a specified IPv4 address.
- Get the network class for a specified IPv4 subnet mask.
- Get the type of allocation space for a specified IPv4 address.
- Find out whether an IPv4 address matches the APIPA address range.
- Find out whether an IPv4 address matches the loopback address range.
- Find out whether an IPv4 address matches the address range of private networks.
- Find out whether an IPv4 address matches the address range of public networks.
- Get the result of a logical AND between two IPv4 addresses.
- Get the result of a logical OR between two IPv4 addresses.
- Get the IPv4 subnet address for a specified IPv4 network.
- Get the IPv4 broadcast address for a specified IPv4 network.
- Get the number of usable hosts for an IPv4 subnet mask.
- Get the number of possible subnets for an IPv4 subnet mask.
- Transform a number of usable hosts into a character string corresponding to an IPv4 subnet mask.
- Transform a number of possible subnets into a character string corresponding to an IPv4 subnet mask.
- Check whether a character string corresponds to an IPv6 address format.
- Get the IPv6 address with full 128-bit notation for a compressed IPv6 address.
- Get the compressed IPv6 address for an fully-notated IPv6 address.
Illustrations, screen shots
none
none
User reviews
(To evaluate this resource, click 'Write a review')
Michael
I don't know what is Clarion. If you search the PowerRun function on Internet. You will find that it uses the ShellExecute function. Have you tried using this function to launch your batch script ?

https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea

If you want, I can have a look. You can find my email address in the description of my component.

Best regards.
BOLLER
I tried using WDAPI and the examples it has in the function but could not execute an MS-DOS command without displaying the black screen of the command promt. I know that in Clarion I could run a .bat and not display the prompt with a template called PowerRun that had this MS-DOS screen hide property. If you can help me in advance thank you, give me the email to forward the material I have.
Michael
Thanks for your post. If you want to hide a process, you may be able to use the "CreateProcessA" function and in the "STARTUPINFOA" structure you can set the "wShowWindow" value.

Best regards.

https://docs.microsoft.com/fr-fr/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa
BOLLER
Congratulations! I'm very happy with your post I could use, very ugly, just import as an external component and everything is available. Show!!!!!

I would like to know if you would or could you help me convert an APi code that hides the MS-DOS prompt window when running a .bat? I developed in Clarion but I can't find the api in my files anymore. Can you help me with this project of running a .bat from windev and not opening a Ms-DOS window?
ABOUT
RATING:
51(1)
DOWNLOADS:
76
PUBLISHED:
August 07, 2019
VERSION:
1.0
CONCERNS:
WINDEV
Minimum version: 01F180063c
SIZE:
891.9 KB