Top "Pinvoke" questions

P/Invoke is an implementation specification created by Microsoft of the Common Language Infrastructure (CLI) for invocation of native code libraries from managed code.

Synchronizing 2 processes using interprocess synchronizations objects - Mutex or AutoResetEvent

Consider the following scenario: I'm running my application which, during its execution, has to run another process and only after …

c# .net synchronization pinvoke mutex
Exporting functions from C++ dll to C# P/Invoke

I have built a C++ dll that I would like to call from C# code. I'm able to call one …

c# c++ dll pinvoke dllimport
Passing a C# class object in and out of a C++ DLL class

I've been working on a prototype code application that runs in C# and uses classes and functions from older C++ …

c# c++ pinvoke marshalling dllimport
How do I pass a const char* to a C function from C#?

I try to call a plain C-function from an external DLL out of my C#-application. This functions is defined …

c# .net dll pinvoke marshalling
Refreshing system tray icons programmatically

I've an application which has a system tray icon. While uninstalling I'm killing the process if its running. So, as …

c# pinvoke system-tray trayicon
CreateProcessAsUser Creating Window in Active Session

I am using CreateProcessAsUser from a windows service (please can we stay on-topic and assume I have a very good …

c# windows-services pinvoke
How do I go about instantiating a COM Object in C# by CLSID?

Forgive me if my terminology is off, as this is somewhat uncharted territory for me. I have a program which …

c# com pinvoke shell32
Any reason to prefer CefSharp over CefGlue (or vice-versa)?

In the realm of providing a decent implementation of the Chromium Embedded Framework (CEF) for .Net, the two leading options …

.net webkit c++-cli pinvoke chromium
C# using SendMessage, problem with WM_COPYDATA

I've been spending a few days (or more) trying to get this to work. The application at hand is FTPRush, …

c# pinvoke sendmessage
Easiest way to generate P/Invoke code?

I am an experienced .Net programer, but have not compiled a C/C++ program in my life. Now I have …

c# c pinvoke