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( CONFLICT_LIST clConflictList, PULONG pulCount );
Caller-supplied handle to a conflict list, obtained by a previous call to CM_Query_Resource_Conflict_List.
Caller-supplied address of a location to receive the conflict count.
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.
|Minimum supported client||Available in Microsoft Windows 2000 and later versions of Windows.|
|Header||cfgmgr32.h (include Cfgmgr32.h)|