RE: Registering Interfaces

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ben Geib (BenGeib_at_discussions.microsoft.com)
Date: 07/15/04


Date: Thu, 15 Jul 2004 09:20:02 -0700

Is there a way that I can detect, in the AddDevice routine, how many of my devices exist on the PCI bus? I want to use this information for naming purposes (ReferenceString in the IoRegisterDeviceInterface call) as well so that in the rest of the driver I am aware of how many total communications channels exist. Thank you for your time.

"Ben Geib" wrote:

> I am developing a driver for a PCI device that has multiple communication channels. In an attempt to have each channel opened and used individually I have tried registering an interface for each channel in the AddDevice routine; that way a different handle may be used for each channel. However, enumeration of the interfaces in an application does not locate all of those registered in the driver. Should I even be using multiple interfaces or should I name my device object and subdivide its namespace for each channel? Thank you for your time.