PFNBTH_INITIALIZE_BRB callback function

The BthInitializeBrb function initializes a Bluetooth request block (BRB) allocated on the local stack.

Syntax

PFNBTH_INITIALIZE_BRB PfnbthInitializeBrb;

void PfnbthInitializeBrb(
  PBRB pBrb,
  BRB_TYPE brbType
)
{...}

Parameters

pBrb

Pointer to the BRB to initialize.

brbType

Specifies a value from the BRB_TYPE enumeration to initialize the BRB with.

Return Value

None.

Remarks

Profile drivers should use BthInitializeBrb for stack based allocations, such as declaring variables at the beginning of a function.

It is not necessary to call this function for a BRB that was allocated using BthAllocateBrb.

Profile drivers obtain a pointer to the BthInitializeBrb function when they query the Bluetooth driver stack for an instance of the BTHDDI_PROFILE_DRIVER_INTERFACE driver interface. See Querying for Bluetooth Interfaces for more information about querying the Bluetooth driver stack.

Requirements

   
Windows version Versions:_Supported in Windows Vista, and later.
Target Platform Desktop
Header bthddi.h (include Bthddi.h)
IRQL "<= DISPATCH_LEVEL"

See Also

BRB_TYPE

BthAllocateBrb