0

我正在使用 CEN XFS 标准构建应用程序,然后我WFS_ERR_INVALID_POINTER在 CEN XFS 文档中收到了这个错误,它的意思是这样的A pointer parameter does not point to accessible memory.,但我不知道这个错误是什么,,

我的 WFSExecute 是这样的:

WFSExecute(lphService, 1401, cardDispense, 0, lppResult);

我的 lppResult 是这样的:

    [StructLayout(LayoutKind.Explicit), Serializable]
    public struct WFSResult
    {
        [FieldOffset(0), MarshalAs(UnmanagedType.U4)]
        public uint RequestID;

        [FieldOffset(4), MarshalAs(UnmanagedType.U2)]
        public ushort hService;

        [FieldOffset(6), MarshalAs(UnmanagedType.Struct, SizeConst = 16)]
        public Timestamp tsTimestamp;

        [FieldOffset(22), MarshalAs(UnmanagedType.U4)]
        public int hResult;

        [FieldOffset(26), MarshalAs(UnmanagedType.U4)]
        public UInt32 dwCommandCode;

        [FieldOffset(26), MarshalAs(UnmanagedType.U4)]
        public UInt32 dwEventID;

        [FieldOffset(30), MarshalAs(UnmanagedType.U4)]
        public Int32 lpBuffer;
    }
4

0 回答 0