Get the device name.
Ret = LoggerGetDeviceName ( AppId , DeviceName)
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
Specify Application ID retrieved by LoggerOpenApplication.
DeviceName [ VB.NET: StringBuilder ] [ C++: char * ] [ C#: out string ]
Return the device name.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
Definition |
Return code [Dec] |
Description |
LOGGER_ERR_SUCCESS |
0 |
Normal completed |
LOGGER_ERR_INVALID_ID |
10010 |
Invalid AppId was specified. |
The others (See also: Error Code List)
C-LOGGER may use the current device until
you select the other device or you terminate C-LOGGER.
This function can be executed even if the device is in operation.
Get the selected device name.
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);
|