GetDeviceAgentTransport

更新 : 2007 年 11 月

IDeviceAgentTransport インターフェイスを実装している型を持つデバイス エージェント インスタンスを動的に作成します。

HRESULT GetDeviceAgentTransport(IDeviceAgentTransport **out_pTransport);

パラメータ

解説

接続を受け入れてデバイスから開発用コンピュータへのストリームを作成するには、IDeviceAgentTransport を使用します。

使用例

この例では、IDeviceAgentTransport のインスタンスを動的に作成します。コード例全体については、「IDeviceAgentTransport」を参照してください。

// Load the Device Agent Transport Library
HINSTANCE hmod;
hmod = LoadLibrary(L"DeviceAgentTransport.dll");

// Get an instance of IDeviceAgentTransport
GetDeviceAgentTransportFunc f1 = (GetDeviceAgentTransportFunc)
    ::GetProcAddress(hmod, L"GetDeviceAgentTransport");
IDeviceAgentTransport *pTransport = NULL;
f1(&pTransport);

等価なマネージ機能

DeviceAgentTransportFactory.GetAgentTransport

必要条件

DeviceAgentTransport.h

参照

その他の技術情報

アンマネージ デバイス側スマート デバイス接続 API