Is it possible to find out what functions are available in an arbitrary dll file, and then call these functions using C # interaction services.
You can analyze the exported functions of any native module (DLL or EXE) with tools such as dumpbin . Once you have the signatures of the exported functions, you can write P / Invoke wrappers for any of them that you want.
Alternatively, you can use a tool, such as the P / Invoke Interop Assistant , to do this job automatically.
, , . , , , GetProcAddress ..
, DLL, , DLL C-, .
. DLL C , , , . .NET Interop (PInvoke), , .
: , , DLL, DumpBin /exports filename.dll, , , . , , , , .
DumpBin /exports filename.dll
. P/Invoke: http://en.wikipedia.org/wiki/Pinvoke
Dependency Walker DLL.
DLL - , System.Reflection .
System.Reflection
Win32 dll, : P/Invoke API Win32 LoadLibrary GetProcAddress , , .
LoadLibrary
GetProcAddress
, dll, , dumpbin PE Explorer. dll.
"" DLL, .net "", , . . " ".
Source: https://habr.com/ru/post/1747064/More articles:NullReferenceException when user control refers to usercontrol in parent user control - asp.netHelp with my printf function - cEquivalent lambda syntax for linq query - c #An interesting situation with the AS3 hash. Does he really use strict equality, as the documentation says? - equalityHow to make CheckBoxList Validator - validationAsp.net mvc inheritance controllers - inheritanceThe PHP $ _SESSION nested array is lost when the dummy foreach () name matches the array name - phpMemory allocation for an array with char-c pointerNoob boost :: bind function feedback function - c ++Running batch file with Perl (activate perl on Windows) - windowsAll Articles