共用方式為


ISCardCmd::get_LeField 方法

[ get_LeField 方法可用於需求一節中指定的作業系統。 它不適用於 Windows Server 2003 Service Pack 1 (SP1) 及更新版本、Windows Vista、Windows Server 2008 和後續版本的作業系統。 智慧卡模組提供類似的功能。]

get_LeField方法會傳回應用程式通訊協定資料單位的 Le 欄位, (APDU) 。

語法

HRESULT get_LeField(
  [out] LONG *plSize
);

參數

plSize [out]

傳回時 Le 域值的指標。

傳回值

方法會傳回下列其中一個可能的值。

傳回碼 描述
S_OK
作業已順利完成。
E_INVALIDARG
plSize參數無效。

 

範例

下列範例示範如何從 應用程式通訊協定資料單位 擷取 Le 域值, (APDU) 。 此範例假設 pISCardCmd 是 ISCardCmd 介面實例的有效指標。

LONG     lLe;
HRESULT  hr;

// Retrieve the Le field value.
hr = pISCardCmd->get_LeField(&lLe);
if (FAILED(hr))
{
    printf("Failed get_LeField\n");
    // Take other error handling action.
}
else
    printf("Le field value returned is %d\n", lLe);

規格需求

需求
最低支援的用戶端
Windows XP [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2003 [僅限桌面應用程式]
用戶端支援結束
Windows XP
伺服器終止支援
Windows Server 2003
標頭
Scarddat.h
類型程式庫
Scarddat.tlb
DLL
Scardssp.dll
IID
IID_ISCardCmd定義為 D5778AE3-43DE-11D0-9171-00AA00C18068

另請參閱

ISCardCmd