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.

Parameters
aName"The name to be converted"
Return Value
"The converted name" "This method will leave if an error occurs with the unicode->utf8 conversion"

ToUnicodeL ( const TBTDeviceName8 & )

IMPORT_C TBTDeviceNameToUnicodeL(const TBTDeviceName8 &aName)[static]

Convert a narrow TBTDeviceName8 to a wide TBTDeviceName. Uses utf8->unicode conversion.

Parameters
aName"The name to be converted"
Return Value
"The converted name" "This method will leave if an error occurs with the utf8->unicode conversion"