简体   繁体   English

JNA调用C函数

[英]JNA call to C function

I have a function in C GetProductString( DWORD DeviceNum,LPVOID DeviceString, DWORD Options). 我在C GetProductString中有一个函数(DWORD DeviceNum,LPVOID DeviceString,DWORD选项)。 How do I call this in JNA ? JNA中我怎么称呼它?

If you're having trouble mapping LPVOID , it's most likely a char* or a wchar* . 如果您在映射LPVOID遇到麻烦,则很可能是char*wchar* You're also missing the return value type, so look into getting the complete function signature. 您还缺少返回值类型,因此请研究获取完整的函数签名。

Need more information to help further. 需要更多信息以进一步提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM