3
我有DLL函数的DllImport - C型到.NET类型
DLLExport int PatchSomething(char*, char*, DWORD, unsigned char*, unsigned short int);
,但不能完全传递参数到.NET
F#:
模块RNInvoke
open System
open System.Runtime.InteropServices
open Microsoft.FSharp.NativeInterop
open Microsoft.FSharp.Math
module Native =
[<System.Runtime.InteropServices.DllImport("DesuDLL.dll",EntryPoint="add")>]
extern int PatchSomething(char*, char*, DWORD, unsigned char*, unsigned short int);
或C#
在 无符号字符210个错误*和无符号短整型