Partager via


BthAGSetServiceCallback (Compact 2013)

3/26/2014

This function is called by the Audio Gateway (AG) service to determine whether or not the phone has cellular service.

Syntax

DWORD BthAGSetServiceCallback(
  PFN_PhoneExtServiceCallback pfn
);

Parameters

  • pfn
    [in] Points to a callback function to be called when the cellular service changes.

    The following is an excerpt from the header file, Btagpub.h, that shows the function pointer declaration.

    typedef void (*PFN_PhoneExtServiceCallback) (BOOL fHaveService);
    

    Where, fHaveService determines if the phone has cellular service.

Return Value

Returns TRUE if the phone has cellular service, otherwise, it returns FALSE.

Requirements

Header

btagpub.h

Library

Btagsvc_phoneext.lib

See Also

Reference

Bluetooth AG Service Functions