日期:2014-05-20 浏览次数:22423 次
public static extern IntPtr GetDataByteArray();
.............
 int lpByte = (int)GetDataByteArray();
            byte[] vbyte = new byte[len];
            for (int i = 0; i < len; i++)
            {
                vbyte[i]=System.Runtime.InteropServices.Marshal.PtrToStructure((IntPtr)(lpByte++),typeof(byte));
            }