This tutorial show you a simple example to explain how to invoke Win32 API in ASP.NET 2.0 and C#.

To invoke Win32 API using ASP.NET 2.0 and C# 2.0 is actually very simple.

First, you will need to import the namespaces

Then, add two controls to web page, a Button and a Label control

Add a function for displaying the time interval between mouse clicks of the button

Declare an API function to import Windows Dll at first. Add the other code to count the interval between mouse clicks.

Download Source Files