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個錯誤*和無符號短整型