Home
Company
Developer Tools
Utilities
Order
Articles
Contacts
Press
Resellers
Site map
Login


Latest news:
January 31, 2012

WinI2C/DDC v4.02 released!


January 12, 2012

OCR SDK v2.1 released!


December 27, 2011

WiFi-Manager v5.7 released!


December 14, 2011

OCR SDK v2.0 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-2011, Nicomsoft Ltd. All Right Reserved.  Privacy Policy  |  Terms of Use