I want to use functions from the Win32 API in my .NET application, but I don't know the signature of the methods declared in the DLL files. If I use DllImport
, I have to provide a definition of the method in order to use it as an "extern method".
Or is there another way to do this?
You could have a look at pinvoke.net , it is a collection of methods supported by various Win32 apis. Also it contains programs which can generate DllImport
signatures if you have the C-style header.
Most Win32 API signatures are listed here .
Or you could try DLL Export Viewer .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.