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!
November 27, 2008 at 12:16 am
I am interested in the source for your WinApi module!
November 27, 2008 at 7:01 am
Hi,
Nice blog..publish you new content url at http://www.dotneturl.com and get reader and back link form us for free.
May 5, 2009 at 6:00 pm
Cool thing! Thanks