StreamClassReadWriteConfig - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// strmini.h

BOOLEAN STREAMAPI StreamClassReadWriteConfig(
  [in]      PVOID   HwDeviceExtension,
  [in]      BOOLEAN Read,
  [in, out] PVOID   Buffer,
  [in]      ULONG   Offset,
  [in]      ULONG   Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-strmini-streamclassreadwriteconfig)

StreamClassReadWriteConfig function

Description

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

Parameters

HwDeviceExtension [in]

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.

Read [in]

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.

Buffer [in, out]

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

Offset [in]

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

Length [in]

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.