.NET
voyeur.txt
Associated article: A Win32 Network Crawler
Tags: .NET
Published source code accompanying the article by Jawed Karim in which he discusses MP3 Voyeur, a freely-available Win32 program that automates the task of finding MP3 files on the shared folders of local area networks. It works like a network crawler, querying each computer on the network and traversing each computer's hierarchy of shared folders to find MP3 files. Also see VOYEUR.ZIP.
A Win32 Network Crawler
by Jawed Karim
Listing One
HANDLE hRoot = GetNetworkHandle (NULL);
RecurseNetworkLevels (hRoot);
WNetCloseEnum (hRoot);
Listing Two
RecurseNetworkLevels (HANDLE handle)
{
NETRESOURCE netres[NUM_RES];
int numEntries = GetNetworkInfo (handle, netres, NUM_RES);
for (int i = 0; i < NUM_RES; ...


