/*! \brief Extract the public data files from a SIS image and parse the content. * * This function will extract the two public files - the PBDF (Public Data File) and the * ISDF (Issuer Data File) - from the SIS image. PBDF and ISDF are parsed and the relevant * data fields are made available in 2 data structures, resp. of type Pbdf and Isdf. * * \param pucBuffer the buffer (SIS_LEN bytes) containing the SIS card image read * \param pxPbdf the resulting PBDF file * \param pxIsdf the resulting ISDF file * * \note dates are always in "YYYYMMDD" format * * \return ERR_OK if ok * \return ERR_PARAM if parameter error * \return ERR_BNCS if SIS parse error * \return ERR_INTERNAL if internal error * */ SISPUBLIC_API SisPublicError SisPublicParse(const unsigned char *pucBuffer, Pbdf *pxPbdf, Isdf *pxIsdf);euh... and this ?...:)
>> /*! \brief Read the relevant 404 bytes from the SIS card >> * >> * This function reads the complete relevant content (404 bytes) of the SIS card and copies the >> raw content in the buffer. >> * This function returns PC/SC return codes. Depending on the OS winscard.h or pcsclite.h are >> included to >> * make sure the return codes are properly defined. >> * >> * Card readers: this function will try to read a SIS card in the first available (according to PC/SC card reader enumeration), supported card reader. >> * Check the product documentation for a list of supported card readers. >> * >> * \param pucBuffer the buffer (SIS_LEN bytes) where the SIS card will be stored >> * >> * \return PC/SC error code >> * \return SCARD_S_SUCCESS if ok >> * \return SCARD_E_INSUFFICIENT_BUFFER if pucBuffer is NULL >> * >> */ >>SISPUBLIC_API LONG SisPublicReadCard(unsigned char *pucBuffer) >> >>>>
>>LOCAL cValue >>DECLARE STRING SisPublicReadCard IN SisPublic.dll >>cValue = SisPublicReadCard() >>WAIT WINDOW cValue >>>>
>DECLARE LONG SisPublicReadCard IN SisPublic.dll STRING @ >STORE REPLICATE(CHR(0),404) TO cTest >? SisPublicReadCard(@cTest) >? cTest >>