BTDeviceNameConverter Class Reference

#include <btdevice.h>

Link against: btdevice.lib

class BTDeviceNameConverter
Public Member Functions
IMPORT_C TBTDeviceName8ToUTF8L(const TBTDeviceName &)
IMPORT_C TBTDeviceNameToUnicodeL(const TBTDeviceName8 &)

Detailed Description

Utility class to convert between a wide TBTDeviceName and a narrow TBTDeviceName8.

Member Function Documentation

ToUTF8L ( const TBTDeviceName & )

IMPORT_C TBTDeviceName8ToUTF8L(const TBTDeviceName &aName)[static]
Convert a wide TBTDeviceName to a narrow TBTDeviceName8. Uses unicode->utf8 conversion.
leave
"This method will leave if an error occurs with the unicode->utf8 conversion"
ParameterDescription
aName"The name to be converted"

Returns: "The converted name"

ToUnicodeL ( const TBTDeviceName8 & )

IMPORT_C TBTDeviceNameToUnicodeL(const TBTDeviceName8 &aName)[static]
Convert a narrow TBTDeviceName8 to a wide TBTDeviceName. Uses utf8->unicode conversion.
leave
"This method will leave if an error occurs with the utf8->unicode conversion"
ParameterDescription
aName"The name to be converted"

Returns: "The converted name"