Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create "browse network neighborhood" in VB 1

Status
Not open for further replies.

NeedVBHelp

Programmer
Mar 9, 2000
15
US
Hi,<br>
How to we create a function allow user to &quot;browse network neighborhod<br>
Thanks
 
<br>
Look in MSDN at the WNetConnectionDialog1 function. You fill out a CONNECTDLGSTRUCT structure telling it what you want to browse for. Note that it has an embedded pointer to a NETRESOURCE structure that you must also fill out.<br>
<br>
I'm not sure what will happen if this function is called on a machine that doesn't have a network interface defined. I suspect you just get something other than WN_SUCCESS(user chose a resource) or 0xFFFFFFFF (user canceled), which you can lookup via GetLastError.<br>
<br>
Chip H.<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top