IGetClusterObjectInfo::GetObjectType

The IGetClusterObjectInfo::GetObjectType method retrieves the type of an object.

CLUADMEX_OBJECT_TYPE GetObjectType(
  LONG lObjIndex  
);
 

Parameters

lObjIndex
[in] A number representing the zero-based index of the target object. At present, lObjIndex is restricted to the number that can be retrieved by calling IGetClusterDataInfo::GetObjectCount.

Return Values

If GetObjectType is successful, it returns one of the following values representing object types:

CLUADMEX_OT_NONE
CLUADMEX_OT_Cluster
CLUADMEX_OT_Node
CLUADMEX_OT_Group
CLUADMEX_OT_Resource
CLUADMEX_OT_ResourceType

If GetObjectType is unsuccessful, it returns –1. For more information, call the Win32 function GetLastError.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in cluadmex.h.