CipherLab 9400 Series User Manual page 171

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

GetDeviceName
Purpose
To get the name of the connected device.
Syntax
int GetDeviceName (int devInfo,
Parameters
devInfo
[in] A value returned by FindNextBTDevice().
devName
[in][out] Pointer to a buffer where the device name is stored.
Example for C#
int b1 = 0;
string devName = string.Empty;
b1 = Cipherlab.SystemAPI.Member.GetDeviceName(devInfo, ref devName);
Example for VB
Dim devName As String
Cipherlab.SystemAPI.Member.GetDeviceName(devInfo, devName)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
See Also
FindNextBTDevice
ref string devName);
Call GetErrorCode() to find the error condition encountered:
21
ERROR_NO_DEVICE_INFO
25
ERROR_NOT_DEVICEINFO_OBJ
31
ERROR_WRONG_ARG
Chapter 3
System API
163

Advertisement

Table of Contents
loading

Table of Contents