デバイス名を取得します。
Ret = LoggerGetDeviceName ( AppId , DeviceName)
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
LoggerOpenApplicationで取得したアプリケーションIDを指定します。
DeviceName [ VB.NET:StringBuilder ] [ C++ : char * ] [ C#:out string]
設定されているデバイス名を取得します。
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
定義 |
戻り値 [Dec] |
内容 |
LOGGER_ERR_SUCCESS |
0 |
正常終了 |
LOGGER_ERR_INVALID_ID |
10010 |
無効なAppIDが指定されました。 |
その他のエラー(参照:エラーコード一覧)
別のデバイスを選択する、またはアプリを落とすまで、指定したデバイスを使用します。
デバイス動作中での実行が可能です。
選択されているデバイス名を取得します。
VB.NET |
Dim Ret As Integer Dim DeviceName As New StringBuilder("",
256)
|
C++ |
long Ret; char DeviceName[256]; Ret = LoggerGetDeviceName(AppId, DeviceName);
|
C# |
int Ret; string DeviceName; Ret = logger.GetDeviceName(AppId, out DeviceName);
|