NCS_NumberResources

Specifies the size of the array for all of the resources used within the cluster.

Syntax

 #include <ncssdk.h> 
  
 NCS_RETURN NCS_NumberResources (
   NCS_HANDLE   Handle,
   UINT32      *NumResources);
 

Parameters

Handle

(IN) Specifies the current NCS handle.

NumResources

(OUT) Points to the number of resources returned.

Return Values

Name

Description

SUCCESS

NCS_SUCCESS.

NCS_BAD_PARAMETER

See NDS Error Codes.

Remarks

Call NCS_NumberResources before calling NCS_ListResources. NCS_NumberResources fills in the NumResources parameter with a record count so that NCS_RESOURCE records can be allocated to make the NCS_ListResources call.