NETApi – The Winapi for dot NET

It’s here! The power of Winapi in your .NET based application.

I worked today on transfering all the Winapi-s to .NET. You can now just include as reference the NETApi.dll and then you can write code as if the api-s were .NET Native.

For example (code written in c#):

using System;
using System.Collections.Generic;
using System.Text;
using WIN32API;//the name of the namespace found in the NETApi.dll

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int p;
string path1=”f:\\testhex.txt”;
string path2=”e:\\testhex.txt”;
Decl.CopyFile(path1, path2, p);
}
}
}

The NETApi.dll is created in c# .NET 2.0 and contains three classes:
- Decl (contains declared functions and voids)
- Cst (contains constants)
- Types (contains structures and enums)

You can download the dll file from here: http://rapidshare.com/files/106919013/NETApi.dll.html

I will post it open source as soon as I’ll see there is a large request for this file.

If you find functions or voids that do not work please give me feedback!