IBTDevice::Init (Compact 2013)
3/26/2014
This method initializes the properties for the Bluetooth device with the specified data.
Syntax
HRESULT Init (
const BT_ADDR* pBA,
DWORD dwCOD,
WCHAR *pszName,
BOOL fTrusted
);
Parameters
- pBA
[in] Device address.
- dwCOD
[in] Class of device (COD) for the specified device.
- pszName
[in] Name of the device.
- fTrusted
[in] TRUE if the device is trusted; otherwise FALSE.
Return Value
Returns S_OK if the method completes successfully. Also returns standard HRESULT values as appropriate.
Remarks
This method can be used to add a new Bluetooth device to the registry. To register the device, first create the BTDEVICE object by callingCoCreateInstance, initialize the device properties by calling IBTDevice::Init, and save the properties by calling IBTDevice::Save.