Home
Company
Developer Tools
WinI2C/DDC
WiFi-Manager
Advanced PDF Viewer
N-Manager
Overview
Download
Order
Online Help
License Agreement
Utilities
Order
Articles
Contacts
Press
Site map
Member zone


Latest news:
September 2, 2010

Advanced WiFi-Manager v4.6 released!


June 18, 2010

Advanced WiFi-Manager v4.5 released!


June 9, 2010

WinI2C/DDC v3.71 released!









 N-Manager: Developer's Guide


N-Manager consists from one file only: NMan.dll. This file must be located under "<windows>\system32" or any other directory available for the running application. If you want to use N-Manager as COM object then this file must be registered through regsvr32.exe before using.


Firstly, you should enumerate available network adapters by calling EnumerateAdapters function. It will return number of adapters found if success, otherwise it will return an error code.

After adapters enumeration, you can call any other N-Manager functions. For example, following example will enable all available network adapters:

...
#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
}



You should call FreeAllResources function when N-Manager library is not necessary anymore, this function will release all allocated memory and resources.

N-Manager package contains demo projects for various programming languages (C++, VB.NET, C#, Delphi), see "Samples" directory for details.




   Copyright ©2002-2010, Nicomsoft Ltd. All Right Reserved.  Privacy Policy  |  Terms of Use