## The INTERFACEENUM Sample

The INTERFACEENUM Sample accompanies Chapter 2 and illustrates how to locate the devices that support particular interfaces. This sample was part of Service Pack 5 in the 1st edition.

The sample includes one component:

- InterfaceEnum.EXE is a console-mode application that enumerates all registered device interfaces.

### Building INTERFACEENUM

To build InterfaceEnum.EXE, follow the general instructions for building user-mode samples

### Testing INTERFACEENUM

Execute InterfaceEnum.EXE from a command prompt. It will enumerate all the registered device interfaces on your computer. For each interface, it will report the friendly names of all devices that have registered that interface.

### What to look for

InterfaceEnum.cpp uses several SetupDiXxx functions to enumerate instances of a great many registered interfaces.