Table of contents
Collapse the table of content
Expand the table of content

Accessing Device Properties

Last Updated: 1/24/2017

You must not discover or change device properties by directly accessing registry keys. Registry keys do not contain required information to discover or change device properties. In addition, the location, format, and meaning of these keys might change between different versions of Windows.

The SetupAPI functions provide consistent behavior and enforce access permissions to protect device properties. Starting with Windows Vista, device properties that have restricted write access also have restricted read access.

To safely access device properties, follow these guidelines:

© 2017 Microsoft