Most voted "pinvoke" questions
P/Invoke is an implementation specification created by Microsoft on the Common Language Infrastructure (CLI) to invoke native code managed code libraries.
Learn more…4 questions
Sort by count of
-
3
votes1
answer304
viewsWhy does keybd_event not work in some contexts?
I want to understand why keybd_event doesn’t work in some contexts. For example, it does not work in games with League of Legends or emulated games on ePSXe. The following code: Keys key = Keys.Q;…
-
2
votes2
answers197
viewsHow to import user32.dll and others into C#?
I found several and various results on the internet teaching to import a specific function from user32.dll. But I can’t get out of my head if someone hasn’t done a project with all the imports…
-
2
votes1
answer86
viewsWhat the hell is marshaling?
Whenever I see signatures of P/Invoke full of Marshaling attributes I always remove one by one and testing if this causes any error, most of the time I end up with a signature with no attribute, no…
-
0
votes0
answers67
viewsHow to implement in C++ and use in C# in VS?
EDIT: I want to implement in C++ (no limitations, using intrinsics, inlines, optimizing and everything else normally), choose what in what has been implemented is visible in . NET (C# at least) and…