wclBluetoothRadioCreateComPort Method |
Creates new virtual COM port.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax public int CreateComPort(
long Address,
Guid Service,
out ushort Number
)
Public Function CreateComPort (
Address As Long,
Service As Guid,
<OutAttribute> ByRef Number As UShort
) As Integer
public:
int CreateComPort(
long long Address,
Guid Service,
[OutAttribute] unsigned short% Number
)
Parameters
- Address Int64
- Remote device address.
- Service Guid
- A service's UUID.
- Number UInt16
- If function completed with success the
Number parameter contains a just created virtual COM port
number.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
Remarks A created vCOM is valid only while radio object is
available.
The Service parameter can be Serial Port Profile or
DialUp Networking Profile UUID.
See Also