pcsc-sharp : PCSC Namespace

SCardPCI Class

Structure of protocol information.

public class SCardPCI : IDisposable

Remarks

Is a structure containing the following:

C Example
typedef struct {
	DWORD dwProtocol;    // SCARD_PROTOCOL_T0 or SCARD_PROTOCOL_T1
	DWORD cbPciLength;   // Length of this structure - not used
} SCARD_IO_REQUEST;

The pointers to the pre-defined / built-in PCI structures are determinated with dlsym() on UNIX/Linux hosts and GetProcAddress() on Windows hosts.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Members

See Also: Inherited members from object.

Public Constructors

Creates a new SCardPCI object.
Creates a new SCardPCI object.
Creates a new SCardPCI object.

Public Properties

[read-only]
Data byte[]. User data.
[read-only]
PciLength int . Size of this structure in bytes.
[read-only]
Protocol SCardProtocol . Protocol
[read-only]
static
Raw IntPtr . Pre-defined RAW PCI structure. (SCARD_PCI_RAW)
[read-only]
static
T0 IntPtr . Pre-defined T=0 PCI structure. (SCARD_PCI_T0)
[read-only]
static
T1 IntPtr . Pre-defined T=1 PCI structure. (SCARD_PCI_T1)

Public Methods

Dispose ()
Documentation for this section has not yet been entered.
Finalize ()
Documentation for this section has not yet been entered.
static
GetPci (SCardProtocol) : IntPtr
Receives a PCI pointer to a given protocol.

Member Details

SCardPCI Constructor

Creates a new SCardPCI object.

public SCardPCI ()

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

SCardPCI Constructor

Creates a new SCardPCI object.

public SCardPCI (SCardProtocol protocol, byte[] pcidata)

Parameters

protocol
Protocol Control Information Description
SCardPCI.T0 Pre-defined T=0 PCI structure. (SCARD_PCI_T0)
SCardPCI.T1 Pre-defined T=1 PCI structure. (SCARD_PCI_T1)
SCardPCI.Raw Pre-defined RAW PCI structure. (SCARD_PCI_RAW)
pcidata
User data.

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

SCardPCI Constructor

Creates a new SCardPCI object.

public SCardPCI (SCardProtocol protocol, int buflength)

Parameters

protocol
Protocol Control Information Description
SCardPCI.T0 Pre-defined T=0 PCI structure. (SCARD_PCI_T0)
SCardPCI.T1 Pre-defined T=1 PCI structure. (SCARD_PCI_T1)
SCardPCI.Raw Pre-defined RAW PCI structure. (SCARD_PCI_RAW)
buflength
Size of this structure in bytes.

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Data Property

User data.

[System.ComponentModel.Description("PCI data")]
public byte[] Data { get; }

Value

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Dispose Method

Documentation for this section has not yet been entered.

public void Dispose ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Finalize Method

Documentation for this section has not yet been entered.

void Finalize ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

GetPci Method

Receives a PCI pointer to a given protocol.

public static IntPtr GetPci (SCardProtocol proto)

Parameters

proto
The desired protocol.

Returns

A pointer to the PCI structure in the native system library.

Remarks

This pointer to the pre-defined / built-in PCI structure is determinated with dlsym() on UNIX/Linux hosts and GetProcAddress() on Windows hosts.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

PciLength Property

Size of this structure in bytes.

[System.ComponentModel.Description("Protocol Control Inf Length")]
public int PciLength { get; }

Value

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Protocol Property

Protocol

[System.ComponentModel.Description("Protocol identifier")]
public SCardProtocol Protocol { get; }

Value

Protocol Control Information Description
SCardPCI.T0 Pre-defined T=0 PCI structure. (SCARD_PCI_T0)
SCardPCI.T1 Pre-defined T=1 PCI structure. (SCARD_PCI_T1)
SCardPCI.Raw Pre-defined RAW PCI structure. (SCARD_PCI_RAW)

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Raw Property

Pre-defined RAW PCI structure. (SCARD_PCI_RAW)

public static IntPtr Raw { get; }

Value

A pointer to the C structure in the system library.

Remarks

This pointer to the pre-defined / built-in PCI structure is determinated with dlsym() on UNIX/Linux hosts and GetProcAddress() on Windows hosts.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

T0 Property

Pre-defined T=0 PCI structure. (SCARD_PCI_T0)

public static IntPtr T0 { get; }

Value

A pointer to the C structure in the system library.

Remarks

This pointer to the pre-defined / built-in PCI structure is determinated with dlsym() on UNIX/Linux hosts and GetProcAddress() on Windows hosts.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

T1 Property

Pre-defined T=1 PCI structure. (SCARD_PCI_T1)

public static IntPtr T1 { get; }

Value

A pointer to the C structure in the system library.

Remarks

This pointer to the pre-defined / built-in PCI structure is determinated with dlsym() on UNIX/Linux hosts and GetProcAddress() on Windows hosts.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1