IAllocatorMXF::PutBuffer method

This method is not currently used by the miniport driver. The PutBuffer method passes a buffer to the allocator, but this occurs automatically when IMXF::PutMessage is called anyway.

Syntax


NTSTATUS PutBuffer(
  [in]  PBYTE pbBuffer
);

Parameters

pbBuffer [in]

Pointer to the buffer being passed to the allocator

Return value

PutBuffer returns S_OK if the call was successful. Otherwise, the method returns an appropriate error code.

Remarks

The miniport driver does not need to use this method because when the miniport driver calls IMXF::PutMessage, the allocator looks at the cbEvent member of the DMUS_KERNEL_EVENT structure to determine if uData is a pointer or just data. If cbEvent specifies that the event data is greater than the storage capacity of uData (4 bytes on a 32-bit system and 8 bytes on a 64-bit system), the allocator simply assumes that uData points to a buffer that can be reused.

Requirements

Header

Dmusicks.h (include Dmusicks.h)

IRQL

<=DISPATCH_LEVEL

See also

IMXF::PutMessage
DMUS_KERNEL_EVENT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.