weolar / miniblink49

a lighter, faster browser kernel of blink to integrate HTML UI in your app. 一个小巧、轻量的浏览器内核,用来取代wke和libcef
Apache License 2.0
7.22k stars 1.09k forks source link

miniblink_5775_x32版本使用vip方式初始化后程序直接关闭了 #576

Open Hirsi-He opened 1 year ago

Hirsi-He commented 1 year ago

你好,我参考其他C#封装 [DllImport("miniblink_5775_x32.dll", EntryPoint = "mbInit", CallingConvention = CallingConvention.StdCall)] internal static extern void mbInit(ref mbSettings setting); 下边是setting结构体 [StructLayout(LayoutKind.Sequential)] public struct mbSettings { public mbProxy proxy; public mbSettingMask mask; [MarshalAs(UnmanagedType.FunctionPtr)] internal mbOnBlinkThreadInitCallback blinkThreadInitCallback; public IntPtr blinkThreadInitparam; } 来初始化,断点过了mbInit()方法程序直接就关闭了 大佬有没有miniblink_5775_x32.dll C#封装的例子