SCARD_IO_REQUEST是用什么deftype的
SCARD_T0_COMMAND又是用什么

解决方案 »

  1.   

    这些都是结构,另外声明。我想知道的是union这一块。
      

  2.   

    高手都在啊vb里面好象没有SCARD_T0_COMMAND,SCARD_IO_REQUESTunion不是联合体,用结构不能声明吗?
    我只是随便问问啊,因为我想你 有你的难处啊
      

  3.   

    typedef struct _SCARD_IO_REQUEST{
        DWORD dwProtocol;   // Protocol identifier
        DWORD cbPciLength;  // Protocol Control Information Length
    } SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST;typedef struct {
        BYTE
            bCla,   // The instruction class
            bIns,   // The instruction code within the instruction class
            bP1,
            bP2,    // Parameters to the instruction
            bP3;    // Size of I/O Transfer
    } SCARD_T0_COMMAND, *LPSCARD_T0_COMMAND;
      

  4.   

    看看这个可能会有帮助
    http://www.china-askpro.com/msg19/qa59.shtml
      

  5.   

    多谢各位。暂时用VC++另写DLL绕过这些问题了。结贴!
      

  6.   

    Type SCARD_IO_REQUEST
        dwProtocol as Long
        cbPciLength as Long
    End TypeType SCARD_T0_COMMAND
        bCla as Byte
        bIns as Byte
        bP1 as Byte
        bP2 as Byte
        bP3 as Byte
    End TypeType SCARD_T0_REQUEST
        ioRequest as SCARD_IO_REQUEST
        bSw1 as Byte
        bSw2 as Byte
        CmdBytes as SCARD_T0_COMMAND
    End Type