PFNBTH_ALLOCATE_BRB callback function

The BthAllocateBrb function allocates a Bluetooth request block (BRB) of the specified type.

Syntax

PFNBTH_ALLOCATE_BRB PfnbthAllocateBrb;

PBRB PfnbthAllocateBrb(
  BRB_TYPE brbType,
  ULONG tag
)
{...}

Parameters

brbType

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

tag

Specifies a 4-byte pool tag that uniquely identifies the driver that does the memory allocation. For more information about pool tags, see ExAllocatePoolWithTag.

Return Value

BthAllocateBrb returns a pointer to the newly allocated BRB, or NULL if the system is out of memory.

Remarks

Profile drivers obtain a pointer to the BthAllocateBrb 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

   
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

ExAllocatePoolWithTag

pool tag