>Thanks Ed. This works beautiful! I also checked out a bunch of your API examples in the Faq area. Most intresting. I have used the WNetAddConnection API before. On the Topic of API is the API Bible worth getting or is there a better book? Is there a "Dictionary" of API Calls anywhere?
>
The book I rely on most heavily is
Windows NT WIN32 API SUperBible by Richard Simon, published by the Waite Group. It's targeted at the C programmer audience, however, if you can get far enough into C-speak to read structure definitions and basic function calls, it's the single best reference I've seen from the standpoint of explaining the API. As people who met me at DevCon can attest, I've been known to walk around conferences with this 1500+ page tome in hand which weighs more than my laptop...
A close second, and probably a much more accessible and easily digested bpook is Dan Appleman's book on using the Win32 API with VB - the title escapes my memory at the moment. VB's syntax is closer to VFP's, and Appleman is a wonderful writer. For programmers who aren't now C-enabled, it's probably the fastest track to starting to use the API.
Other good resources include
The Windows 98 Developer's Guide and of course the source code available here on UT in the FAQ and Files Sections.
As far as the Win API goes, there is one and only one canonical reference; the 3 CD MSDN documentation. It covers the Platform SDK, DDK and many other APIs in detail, (in fact, it's also the docs for all of Microsoft's development products) but it's a reference and is very C-centric. I brought it to DevCOn with it loaded on my hard drive, all 1.3GB of it. Don't leave home without it...
If you liked the stuff in the FAQ, you might want to download some of the files I've posted - CLSHEAP and NETRESOURCE in particular; CLSHEAP is a basic class that makes handling structures considerably easier, and NETRESOURCE uses CLSHEAP to implement the NETRESOURCE structure used by many WNet-family API calls. NETRESOURCE includes a fully-functional demo of the WNetAddConnection3 API call and an example that shows how to use several WNet calls to find all the shares on your network.