110,535
社区成员
发帖
与我相关
我的任务
分享
[DllImport("TestDLL.dll",CallingConvention=CallingConvention.StdCall, ExactSpelling=true, CharSet=CharSet.Ansi, SetLastError=true)]
public static extern void RegGetInfoFv(RegGetInfoFvCallBack n_RegGetInfoFvCallBack );
[System.Runtime.InteropServices.UnmanagedFunctionPointer(CallingConvention=CallingConvention.StdCall)]
public delegate void RegGetInfoFvCallBack (string Id,byte Color,ushort Code,byte rCode );
public static RegGetInfoFvCallBack g_RegGetInfoFvCallBack+= new RegGetInfoFvCallBack (pFunc);
public static void pFunc(string Id,byte Color,ushort Code,byte rCode )
{
//do something
}