I am using C# in Mono and I\'m trying to use pinvoke to call a Linux shared library. The c# call is defined as:
I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this:
I\'m trying to pass some strings in an array to my C++ DLL. The C++ DLL\'s function is: extern \"C\" _declspec(dllexport) void printnames(char** ppNames, int iNbOfNames)
I have a .dll written in C++ with a function defined like this: EDK_API int EE_CognitivSetCurrentLevel( unsigned intuserId,
I hit this problem in Windows Forms, after using PInvoke of SetWindowLongPtr to remove the caption (WS_CAPTION) from a Sizable window.After that whenever the window is either Minimized or Maximized an
First of all the Boolean type is said to have a default marshal type of a four-byte value.So the following code works:
I have some C# code that is calling CreateFile on a different physical device path each time through a loop(ie \\.\\PhysicalDrive1, then \\.\\PhysicalDrive2, ...) via pInvoke and then using the return
I have a C# application that uses the SendMessage pinvoke method to send a \"close window\" message (WM_CLOSE / 16) to various windows outside the application.This works great, except when the window
ive been googling for hours but cant find any way to get all windows in the taskbar. I need to minimize/maximize all windows, but with enumthreadwindows all system process-thread windows are being max
I thought that a delegate instance was interchangeable with a function instance. Take the following code: