Share via


BthSetServiceCallback (Compact 2013)

3/26/2014

This function registers a callback function.

Syntax

int BthSetServiceCallback(
  const GUID* pServiceUuid,
  PFN_BthServiceRequestCallback pfnCallback
);

Parameters

  • pServiceUuid
    [in] Identifies the service.
  • pfnCallback
    [in] Points to the callback function. Set to NULL to remove the previously set callback function.

Return Value

The following table shows the possible return values.

Value

Description

ERROR_SUCCESS

Success.

ERROR_OUTOFMEMORY

Unable to add the callback to the list, or unable to start the callback thread.

ERROR_NOT_FOUND

The specified service does not have a callback to remove.

Requirements

Header

BthServiceHelper.h

Library

BthServiceHelper.lib

See Also

Reference

Bluetooth API Notification Functions
PFN_BthServiceRequestCallback