Generated by P/Invoke interop assistant
public partial class NativeMethods {
[System.Runtime.InteropServices.DllImportAttribute("<PATH TO YOUR DLL >", EntryPoint="oemGetImage")]
public static extern System.IntPtr oemGetImage(ref byte[] pImageBuffer, ref uint pdwSize, ushort nTop, ushort nLeft, ushort nRight, ushort nBottom, ushort nSkip, ushort nBits, System.IntPtr nFormat, ushort nWhiteValue, ushort nExposeAttempts, ushort nGap, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)] bool Invert, System.IntPtr param13) ;
}
void (*fpProgress) (WORD)) it's a delegate to method -> do nothing with it(use IntPtr.Zero)
return type and
nFormat(not shure about that type, check the declaration in c++ code) is unknown so it used like pointer to some unknown object type (use IntPtr)
try to use that way
byte[] pImageBuffer = new byte[MAX_IMAGE_SIZE];
uint pdwSize;
var nFormat = check the type
IntPtr result = NativeMethods.oemGetImage(ref pImageBuffer[], ref pdwSize, 0, 0, 200, 200, 1, 8, nFormat, 200, 100, 55, false, IntPtr.Zero);
Try to move alone from here
I was glad to help you , sorry for my English.
Roman