|
|
|
|
|
|
|
|
Get IP from Host Name.
|
Total Hit (4075) |
This example will show you how to get IP address from host name and also How to retrive all associated IPs to your local machine.
|
Rating
|
|
|
How to get information of all installed IP's on current system.
|
Total Hit (3500) |
This article will show you how to get all installed IP addresses and subnet mask on your system.
To implement quick demo perform the following steps
- Create a standard exe project
- Add a module
- Add 1 command button and 1 text box with MultiLine=True
Place the following code in Form1 d
....Read More |
Rating
|
|
|
|
|
Mapping network share as a mapped drive using API
|
Total Hit (3861) |
«code LangId=1»Option Explicit
Private Declare Function WNetAddConnection Lib "mpr.dll" Alias "WNetAddConnectionA" ( _
ByVal lpszNetPath As String, _
ByVal lpszPassword As String, _
ByVal lpszLocalName As String) As Long
Private Sub MapDrive(share_name As String, Optional drive_
....Read More |
Rating
|
|
|
|
Retriving ICMP statistics using GetIcmpStatistics API
|
Total Hit (2863) |
This code will show you use of GetIcmpStatistics API which can give you some important information regarding ICMP information.
Here is the sample output of this program
«code LangId=0»# Messages [in/out] : 9/11
# Error [in/out] : 0/0
# Redirects [in/out] : 0/0
# Echos [in/out] :
....Read More |
Rating
|
|
|
How to renew/release DHCP lease of a selected interface ?
|
Total Hit (6073) |
This article will show you how to use IP Helper APIs GetAdaptersInfo, GetInterfaceInfo, IPReleaseAddress and IPRenewAddress to list all available IPs and perform renew/release operation on a selected IP.
Before we see actual code lets quickly check the description of each API.
«b»GetAdaptersIn
....Read More |
Rating
|
|
|
How to Add/Remove NT user account programatically
|
Total Hit (5625) |
This article will show you use of NetUserAdd and NetUserDel API to add/remove useraccount.
Windows NT and Windows 2000 exposes LanMan 32-bit Application Programming Interfaces (APIs) to provide network services. These APIs are called only from 32-bit programs running on a Windows NT or Windows 20
....Read More |
Rating
|
|
|
|
Enumerating Share Connection Information
|
Total Hit (1576) |
The WNetEnumResource API continues enumeration of network resources on the local computer that was started by a call to the WNetOpenEnum API function. It will not retrieve the shares in use on remote machines. The illustration shows the function enumerating all network resources on my development ne
....Read More |
Rating
|
|
|
How to Share a Folder using NetShareAdd
|
Total Hit (1547) |
The NetShareAdd function shares a server or workstation resource. Only members of the Administrators or Account Operators local group, or those with Communication, Print, or Server operator group membership can successfully execute the NetShareAdd function. The Print operator can add only Printer qu
....Read More |
Rating
|
|
|
Connecting to Network Resources
|
Total Hit (1755) |
These are small network routines that provide developers with increased functionality and usability.
The first two routines deal with displaying the Map Drive and Disconnect Mapped Drive dialogs.
The second two deal with printers; the first shows the Windows dialog responsible for setting up a
....Read More |
Rating
|
|
|
Enumerating Shared Resources on Remote Machines
|
Total Hit (1685) |
NetShareEnum retrieves information about each shared resource on a server. It's security requirements are the same as those outlined in Obtaining Workstation User Logon Information.
WNetEnumResource can also be used to retrieve resource information, however, it does not enumerate hidden shares or
....Read More |
Rating
|
|
|
Translating a Mapped Drive to a UNC Path
|
Total Hit (1629) |
WNetGetConnection, when passed the drive letter of a mapped drive, will return the full UNC path to the \\server\share that drive is mapped to. By adding a few Shell APIs we can create wrapper routines to perform tests on the constituent portions of the mapped path to assure the returned value point
....Read More |
Rating
|
|
|
DNS Inside Out (DNS Client sample application)
|
Total Hit (2577) |
Today we are going to find out what is going on behind the scenes when our application calls such Winsock API functions as gethostbyname and gethostbyaddr. In other words, we’ll explore the communication session model between a client application and a DNS server. Afterwards, you’ll be able to devel
....Read More |
Rating
|
|
|
Review of “Network Programming for Microsoft® Windows®”
|
Total Hit (2438) |
If you are, as I was, looking for the book that covers the Winsock API and gives examples of how to use it with Visual Basic, you have found what you were looking for. That is, this title is a single one on the market today that keeps in mind that there are thousands of the Visual Basic programmers
....Read More |
Rating
|
|
|
Binary download with the Internet Transfer Control by Mikael Östberg
|
Total Hit (2929) |
Have you ever wanted to retrieve information automatically from another web page and display it on your own web page? There are a couple of ways to do this. One way, which I am going to show you in this article, is using the Microsoft Internet Transfer Control, also known as the Inet Control. It is
....Read More |
Rating
|
|
|
Internet Protocol Helper API (IP Helper API)
|
Total Hit (2468) |
We have launched new section of the website - IP Helper API. While the IP Helper API is designed for use by C/C++ programmers, it is possible to use this API in Visual Basic. In this section you will find out how to use some functions of that API. At this time there are two articles: "How to get all
....Read More |
Rating
|
|
|
CWinInetConnection class
|
Total Hit (2090) |
Check up CWinInetConnection class that, encapsulating the calls of WinInet API, allows you to detect the Internet connection and its properties, establish and hang up the connection, switch the system state known as Online/Offline mode.
|
Rating
|
|
|
|
|
Mail Checker Sample Application
|
Total Hit (2550) |
the tutorial that shows you all the steps of creating of the simple application for receiving e-mail.
|
Rating
|
|