DevFindProperty function (devquery.h)

Finds the DEVPROPERTY that corresponds to a particular property within an array of DEVPROPERTY structures.

Syntax

const DEVPROPERTY* WINAPI DevFindProperty(
    [in] const DEVPROPKEY *pKey,
    [in] DEVPROPSTORE Store,
    [in] PCWSTR pszLocaleName,
    [in] ULONG cProperties,
    [in] const DEVPROPERTY *pProperties);

Parameters

[in] pKey

A DEVPROPKEY value identifying the property to find.

Store

The DEVPROPSTORE value that indicates the property store of the property to find.

[in,optional] pszLocaleName

The locale name of the property to find. Typically, this will be NULL.

[in] cProperties

The count of elements pointed at by pProperties.

[in] pProperties

An array of DEVPROPERTY structures to search for the specified property in.

Return value

A pointer to the DEVPROPERTY structure that matches the specified search criteria or NULL if no matching property was found.

Requirements

Requirement Value
Minimum supported client Windows 10 version 1809
Minimum supported server Windows Server 2019
Header devquery.h
Library Onecore.lib
DLL Cfgmgr32.dll