Share via


BthGetLocalName (Compact 7)

3/12/2014

This function returns the local Bluetooth device name.

Syntax

int BthGetLocalName(
  LPWSTR pszName,
  int cchName
);

Parameters

  • pszName
    [out] Pointer to a caller-allocated buffer that receives the local device name string.
  • cchName
    [in] Length, in characters, of the buffer pointed to by pszName.

Return Value

The following table shows the possible return values.

Value Description

ERROR_SUCCESS

Success.

ERROR_NOT_FOUND

No local device name is set.

ERROR_INSUFFICIENT_BUFFER

Buffer length is not large enough to contain the local device name string.

Remarks

This function uses the system device name if a local device name is not set in the registry.

See Also

Reference

Bluetooth API Miscellaneous Functions