The put_Data method sets the data field in the APDU.
HRESULT put_Data(
LPBYTEBUFFER pData
);
The possible return values are the following:
Value | Meaning |
---|---|
S_OK | Operation completed successfully. |
E_INVALIDARG | pData is invalid. |
E_POINTER | A bad pointer was passed in pData. |
E_OUTOFMEMORY | Out of memory. |
When you set a new data portion of the message, the length of the data field is calculated and stored in the P3 parameter of the APDU. To retrieve the length of the data field, call get_P3.
To retrieve the data field from the APDU, call get_Data.
Windows NT: Use version 4.0 SP3 and later.
Windows: Use Windows 95 OSR2.1.
Windows CE: Unsupported.
Header: Declared in scarddat.h.
Import Library: scarddat.tlb.