ISCardCmd::put_Data

The put_Data method sets the data field in the APDU.

HRESULT put_Data(
  LPBYTEBUFFER pData  
);
 

Parameters

pData
[in] Pointer to the byte buffer object (IStream) to be copied into the APDU's data field.

Return Values

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.

Remarks

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.

QuickInfo

  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.

See Also

get_Data, get_P3, ISCardCmd