ISCardCmd::put_P2

The put_P2 method sets the second parameter (P2) byte in the APDU.

HRESULT put_P2(
  BYTE byP2  
);
 

Parameters

byP2
[in] The byte that is the P2 field.

Return Values

The possible return values are the following:

Value Meaning
S_OK Operation completed successfully.
E_INVALIDARG byP2 is invalid.
E_OUTOFMEMORY Out of memory.

Remarks

To set the P1 value of the APDU, call put_P1.

To retrieve the existing P1, P2, and P3 values, call get_P1, get_P2 or get_P3 respectively.

For a list of all the methods provided by the ISCardCmd interface, see ISCardCmd.

In addition to the COM error codes listed above, this interface may return a smart card error code if a smart card function was called to complete the request. For information on smart card error codes, see Error Codes.

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_P1, get_P2, get_P3, get_P2, ISCardCmd, put_P1