StreamClassReadWriteConfig function (strmini.h)

The StreamClassReadWriteConfig routine reads or writes configuration data for the minidriver's parent bus driver.

Syntax

BOOLEAN STREAMAPI StreamClassReadWriteConfig(
  [in]      PVOID   HwDeviceExtension,
  [in]      BOOLEAN Read,
  [in, out] PVOID   Buffer,
  [in]      ULONG   Offset,
  [in]      ULONG   Length
);

Parameters

[in] HwDeviceExtension

Pointer to the minidriver's device extension. The minidriver specifies the size of this buffer in the HW_INITIALIZATION_DATA structure it passes when it registers itself via StreamClassRegisterMinidriver. The class driver then passes pointers to the buffer in the HwDeviceExtension member of the HW_STREAM_REQUEST_BLOCK, HW_STREAM_OBJECT, HW_TIME_CONTEXT, and PORT_CONFIGURATION_INFORMATION structures it passes to the minidriver.

[in] Read

Specifies whether to read or write the configuration information. A value of TRUE indicates that a read is requested. A value of FALSE indicates that a write should be performed.

[in, out] Buffer

Points to the buffer to use to read/write the configuration information.

[in] Offset

Specifies the offset within the configuration information to begin the read/write operation.

[in] Length

Specifies the length of the data to read or write.

Return value

Returns TRUE on success, FALSE on failure.

Remarks

This routine reads or writes configuration information for the minidriver's parent bus driver. For example, for a PCI device, StreamClassReadWriteConfig reads or writes PCI configuration information.

This routine can only be called at PASSIVE_LEVEL.

Requirements

Requirement Value
Target Platform Desktop
Header strmini.h (include Strmini.h)
Library Stream.lib