General information
Category:
Windows API functions
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only