110,533
社区成员
发帖
与我相关
我的任务
分享
short* arr = stackalloc short[512];
acqInfo.pTransBuffer = (IntPtr)arr;
for (int i = 0; i < arr1.Length; ++i)
{
Matrix[i] = (char)arr[i];
}
/// Return Type: void
///eNo: INT->int
///pData: PVOID->void*
///pContxt: PVOID->void*
[System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention.StdCall)]
public delegate void P_EVENT(int eNo, System.IntPtr pData, System.IntPtr pContxt);
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct tagSTR_DEF {
/// P_EVENT
public P_EVENT pRoutine;
/// PVOID->void*
public System.IntPtr pMeasContext;
/// PVOID->void*
public System.IntPtr pTransBuffer;
}
public partial class NativeMethods {
/// Return Type: void
///Device: int
///pStr: PSTR_DEF->tagSTR_DEF*
[System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint="trans_StartA")]
public static extern void trans_StartA(int Device, ref tagSTR_DEF pStr) ;
}