Share via


IBTService::Init (Compact 2013)

3/26/2014

This method initializes the properties for the service with the specified data.

Syntax

HRESULT Init(
  WCHAR *szServiceName, 
  GUID* pServiceUUID, 
  BYTE bChannel,
  LPBLOB pSDPRecord
)

Parameters

  • szServiceName
    [in] Name of the service.
  • pServiceUUID
    [in] Service ID.
  • bChannel
    [in] Channel identifier (CID).
  • pSDPRecord
    [in] Pointer to a BLOB (Windows Sockets) structure that stores the Service Discovery Protocol (SDP) record.

Return Value

Returns S_OK if the method completes successfully. Also returns standard HRESULT values as appropriate.

Remarks

To guarantee that the interface is initialized with current properties, do not call this method to initialize a new IBTService interface. Instead, call IBTDevice::QueryServices to refresh the service properties in the registry, followed by IBTDevice::GetService to get a pointer to an initialized IBTService interface.

See Also

Reference

IBTService

Other Resources

Bluetooth