Skip to content
April 12, 2008 / dranaxum

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:

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!



Leave a Comment
  1. Mario / Nov 27 2008 12:16 am

    I am interested in the source for your WinApi module!

  2. DotNetUrl / Nov 27 2008 7:01 am


    Nice blog..publish you new content url at and get reader and back link form us for free.

  3. Timotei Dolean / May 5 2009 6:00 pm

    Cool thing! Thanks

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: