DevFreeObjects function (devquery.h)

Frees DEV_OBJECT structures allocated by a call to DevGetObjects or DevGetObjectsEx.

Syntax

void DevFreeObjects(
  [in] ULONG            cObjectCount,
  [in] const DEV_OBJECT *pObjects
);

Parameters

[in] cObjectCount

Supplies the number of objects pointed at by pObjects.

[in] pObjects

An array of DEV_OBJECT structures to be freed.

Return value

None

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