N-Manager SDK 1.4 » Developer Team :: Best choice for developers!

N-Manager SDK 1.4

N-Manager SDK 1.4
N-Manager SDK 1.4 | 512 kB


N-Manager is a developer tool that allows you to manage network connections and settings in Windows 2000/2003/XP/Vista. Also, N-Manager provides a COM interface for all API functions so you can easily manage network connections from VB or such .NET languages as VB.NET or C#. With N-Manager you can:

Enumerate network adapters, get their names, guids, properties, etc.
Enable/disable adapters.
Read and change TCP/IP settings: IP, Mask, Gateway, DNS, DHCP.
Repair adapters, display properties dialogs.
Read and change adapters MAC addresses.
Manage Windows firewall.
Use "Ping" function.

N-Manager provides an interface for:

Microsoft Visual C/C++
Microsoft Visual Basic
Borland Delphi
.NET languages (via COM interface)
Other programming systems that can access functions in DLL's or can use COM objects.

 ...
#include "Nman.h"
... 
int res; 
char name[256]; 

res = EnumerateAdapters(); 
if (res > ERROR_OFFSET) return; //some error 
if (res == 0) return; //no adapters found 
for (int i=0; i < res; i++) 
{ 
    if (IsAdapterEnabled(i)==0) //if adapter is disabled 
        Enableadapter(i); //then enable this adapter, note admin rights are needed for this operation 
}


N-Manager Error Codes

ERROR_OFFSET 0x70000000 //error codes offset
ERROR_INIT 0x70000001 //initialization error
ERROR_INVALIDADAPTER 0x70000002 //incorrect adapter index specified
ERROR_SMALLBUFFER 0x70000003 //too small buffer
ERROR_FAIL 0x70000004 //unspecified error
ERROR_ADAPTERNOTFOUND 0x70000005 //adapter not found
ERROR_PINGTIMEOUT 0x70000006 //ping timeout
ERROR_PINGFAIL 0x70000007 //ping failed
ERROR_HOSTRESOLVE 0x70000008 //cannot get IP of host
ERROR_UNSUPPORTEDPLATFORM 0x70000009 //this feature is unsupported in this version of Windows
ERROR_MACSET 0x70000011 //cannot set MAC address



N-Manager SDK 1.4 Only for V.I.P N-Manager SDK 1.4
Warning! You are not allowed to view this text.


Information
Users of Guests are not allowed to comment this publication.