Click here to Skip to main content
11,633,983 members (77,942 online)
Click here to Skip to main content

.NET Wrapper DLL for the WNet API

, 18 Aug 2003 84.5K 1.2K 24
Rate this:
Please Sign up or sign in to vote.
A simple wrapper DLL containing most of the functions in the WNet API.

Introduction

This is a simple wrapper DLL to allow easier access to the WNet API from within the .NET environment.

The WNet API can be used to add/delete network connections (drive and printer mappings) as well as enumerate all devices and shares on the network (see MSDN for the full documentation).

Out of a total of 23 functions and seven structures, 17 functions and all structures are included in this version of the DLL.

The download contains source code for the DLL, which has XML documentation included. There is also a (very) simple sample application in order to demonstrate how to call the functions.

At the moment, the following functions still have not been wrapped.

  • WNetGetNetworkInformation
  • WNetGetProviderName
  • WNetGetResourceInformation
  • WNetGetReourceParent
  • WNetGetUniversalName
  • WNetRestoreConnectionW

Any feedback would be appreciated.

Email (make obvious replacements): nlinnett *at* integranetworks *dot* com.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Calishar
Web Developer
Canada Canada
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 4 Pin
lowellsavage24-Jan-13 16:10
memberlowellsavage24-Jan-13 16:10 
Questionhow to test these classes Pin
baya328-May-08 8:46
memberbaya328-May-08 8:46 
GeneralThank you Pin
sbsrazor23-May-08 15:53
membersbsrazor23-May-08 15:53 
GeneralNice article Pin
Vikas Salvi24-May-06 21:23
memberVikas Salvi24-May-06 21:23 
Generalnice, but need WNetGetNetworkInformation Pin
Princesse18-Jan-05 5:49
sussPrincesse18-Jan-05 5:49 
GeneralRe: nice, but need WNetGetNetworkInformation Pin
Princesse18-Jan-05 6:02
memberPrincesse18-Jan-05 6:02 
GeneralRe: nice, but need WNetGetNetworkInformation Pin
Princesse20-Jan-05 4:40
sussPrincesse20-Jan-05 4:40 
GeneralNice Job Pin
Eric Rinn21-Dec-03 6:06
memberEric Rinn21-Dec-03 6:06 
QuestionHow do you respond to the Author of these code submissions Pin
SilverKitty21-Aug-03 4:52
memberSilverKitty21-Aug-03 4:52 
Generalsuch a hi rating Pin
Normski19-Aug-03 20:19
memberNormski19-Aug-03 20:19 
GeneralRe: such a hi rating Pin
Nishant S19-Aug-03 21:34
editorNishant S19-Aug-03 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150728.1 | Last Updated 19 Aug 2003
Article Copyright 2003 by Calishar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid