LPBYTE,LPWORD在C#中等效 [英] LPBYTE, LPWORD equivalent in c#
本文介绍了LPBYTE,LPWORD在C#中等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的我在c ++中有以下方法
Dears I have the following method in c++
int Pin_Encryt(Word wKeyId,LPBYTE IpEnKeyValue,LPWORD IpOutCryptDataLen,...)
我如何在C#中使用此方法
c#中的LPByte和LPWord等效于什么?
问候
how can i use this method in C#
what is the equivalent of LPByte and LPWord in c#??
Regards,
推荐答案
LPBYTE是指向字节数组的指针. C#中的等效项将是类型为byte []
的变量
LPWORD是UInt32
您可以将您的代表写为:
LPBYTE is a pointer to a byte array. The equivalent in C# would be a variable of type byte[]
LPWORD is UInt32
You can write your delegate as:
public delegate int PinEncrytDelegate(ushort KeyID, byte[] byteData, out UInt32 byteDataLength);
谢谢,
Kuthuparakkal
Thanks,
Kuthuparakkal
这篇关于LPBYTE,LPWORD在C#中等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文