CipherLab 9400 Series User Manual page 172

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

9400 .NET Programming
GetServiceType
Purpose
To get the Bluetooth service that is currently in use.
Syntax
int GetServiceType (int serviceInfo,
Parameters
serviceInfo
[in] A value returned by FindService().
serviceType
[in][out] An integer variable that stores the information.
Example for C#
int b1 = 0;
int serviceInfo = 0;
b1 = Cipherlab.SystemAPI.Member.GetServiceType(
serviceInfo, ref serviceType);
Example for VB
Dim serviceType As Integer
Cipherlab.SystemAPI.Member.GetServiceType(serviceInfo, serviceType)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
See Also
FindService
164
Guide
ref int serviceType);
Call GetErrorCode() to find the error condition encountered:
21
ERROR_NO_DEVICE_INFO
26
ERROR_NOT_SERVICEINFO_OBJ
31
ERROR_WRONG_ARG

Advertisement

Table of Contents
loading

Table of Contents