PFNBTH_INITIALIZE_BRB callback function (bthddi.h)

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

Syntax

PFNBTH_INITIALIZE_BRB PfnbthInitializeBrb;

void PfnbthInitializeBrb(
  [in, out] PBRB pBrb,
  [in]      BRB_TYPE brbType
)
{...}

Parameters

[in, out] pBrb

Pointer to the BRB to initialize.

[in] 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

Requirement Value
Minimum supported client Versions:_Supported in Windows Vista, and later.
Target Platform Desktop
Header bthddi.h (include Bthddi.h)
IRQL <= DISPATCH_LEVEL

See also

BRB_TYPE

BthAllocateBrb