鉴于此 C API 声明,如何将其导入 C#?
const char* _stdcall z4LLkGetKeySTD(void);
我已经能够做到这一点:
[DllImport("zip4_w32.dll",
CallingConvention = CallingConvention.StdCall,
EntryPoint = "z4LLkGetKeySTD",
ExactSpelling = false)]
private extern static const char* z4LLkGetKeySTD();