PFNBTH_ALLOCATE_BRB callback function

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

Syntax


PFNBTH_ALLOCATE_BRB BthAllocateBrb;

PBRB BthAllocateBrb(
  _In_ BRB_TYPE brbType,
  _In_ ULONG    tag
)
{ ... }

Parameters

brbType [in]

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

tag [in]

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

Target platform

Desktop

Version

Versions: Supported in Windows Vista, and later.

Header

Bthddi.h (include Bthddi.h)

IRQL

<= DISPATCH_LEVEL

See also

BRB_TYPE
pool tag
ExAllocatePoolWithTag

 

 

Send comments about this topic to Microsoft

Show: