Information générale
Catégorie:
Fonctions Windows API
hi Ed Rauh,
Below is the function i want to call and parameter want to pass and return:
(1)
>G_ICCPresent(const WORD16 ChannelNb,Byte *Response)
>Byte Response
>G_ICCPrensent(0,&Response)
The question is how to call it in VFP by use your CLSHEAP.prg ?
What is &Response mean ? The declare is look like this?:
>Declare G_ICCPresent In V100_32.DLL string ChannelNb, String @Response
I want get the return value of Response.
(2)Below is another function :
>G_ReaderVersion(const WORD16 ChannelNb, Byte *Response)
>Byte sDataOut[20}
>G_ReadVersion(0,sDataOut)
I want to get the return value of sDataOut, how in Vfp use CLSHEAP.prg?
The declare statement is look like this ?
>Declare G_ReaderVersion In V100_32.DLL string ChannelNb, string @response
(3)Another Function :
>G_ExchangeApdu(APDU_COMM *ApduComm, APDU_RESP *ApduResp)
>typedef struct Apdu APDU_COMM;
>typedef struct Resp APDU_RESP;
>APDU_COMM ApduComm
>APDU_RESP ApduResp
>BYTE Command[COMMAND_LEN];
> WORD16 LengthIn;
>BYTE ReturnVal;
Below is value to pass:
>ApduComm.Command[0]=0x00;
>ApduComm.Command[1]=0xde;
>ApduComm.COmmand[2]=0x08;
>ApduComm.Command[3]=0x2c;
>ApduComm.LengthIn=0x00;
>ReturnVal=G-ExchangeApdu(&ApduComm,&ApduResp)
How to cal it in VFP ?
You said i have to use the Alloc() method in CLSHEAP.prg but i'm not clear about the Alloc() method. I'm sure that the DLL is Win32 API.
Thank you very much.
regard,
chang
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement