PFNBTH_INITIALIZE_BRB callback function

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

Syntax


PFNBTH_INITIALIZE_BRB BthInitializeBrb;

VOID BthInitializeBrb(
  _Inout_ PBRB     pBrb,
  _In_    BRB_TYPE brbType
)
{ ... }

Parameters

pBrb [in, out]

Pointer to the BRB to initialize.

brbType [in]

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

Target platform

Desktop

Version

Versions: Supported in Windows Vista, and later.

Header

Bthddi.h (include Bthddi.h)

IRQL

<= DISPATCH_LEVEL

See also

BRB_TYPE
BthAllocateBrb

 

 

Send comments about this topic to Microsoft

Show: