How to call Windows API

Possible duplicate:
Windows API and .net Languages

I want to call my own Windows API from the .NET Framework. I want to have an easy way by which I can call my own API from a high level level, like other .NET APIs. Please refer to any resource you know. Any help would be appreciated.

+6
source share
2 answers

You can use PInvoke to call Windows API functions.

There is also a PInvoke Interop Assistant that generates a signature for the PInvoke function if you provide it with a Win32 signature.

+1
source

You can call unmanaged DLLs and other functions from WinAPI using P / Invoke in C #. This link describes how to use many of these features.

http://pinvoke.net/

+5
source

Source: https://habr.com/ru/post/907015/


All Articles