CM_Get_Resource_Conflict_Count function (cfgmgr32.h)

The CM_Get_Resource_Conflict_Count function obtains the number of conflicts contained in a specified resource conflict list.


CMAPI CONFIGRET CM_Get_Resource_Conflict_Count(
  [in]  CONFLICT_LIST clConflictList,
  [out] PULONG        pulCount


[in] clConflictList

Caller-supplied handle to a conflict list, obtained by a previous call to CM_Query_Resource_Conflict_List.

[out] pulCount

Caller-supplied address of a location to receive the conflict count.

Return value

If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.


The count value obtained by calling CM_Get_Resource_Conflict_Count can be used to determine the number of times to call CM_Get_Resource_Conflict_Details, which supplies information about each conflict.

If there are no entries in the conflict list, the location supplied by pulCount will receive zero.


Requirement Value
Minimum supported client Available in Microsoft Windows 2000 and later versions of Windows.
Target Platform Desktop
Header cfgmgr32.h (include Cfgmgr32.h)
Library Cfgmgr32.lib
DLL Cfgmgr32.dll