IGetClusterResourceInfo::GetResourceTypeName

The IGetClusterResourceInfo::GetResourceTypeName method retrieves the type of a resource.

HRESULT GetResourceTypeName(
  LONG lObjIndex,             
  BSTR lpszResourceTypeName,  
  LONG *pcchName              
);
 

Parameters

lObjIndex
[in] A number representing the zero-based index of the target resource. At present, lObjIndex is restricted to the number that can be retrieved by calling IGetClusterDataInfo::GetObjectCount.
lpszResourceTypeName
[out] Pointer to the type of the resource associated with lObjIndex. The lpszResourceTypeName parameter can be NULL, indicating that the caller is requesting only the length of the resource type.
pcchName
[in, out] On input, pointer to the count of characters in the buffer pointed to by the lpszResourceTypeName parameter. The pcchName parameter cannot be NULL. On output, pointer to the count of characters in the resource type name stored in the contents of lpszResourceTypeName, including the terminating null character.

Return Values

NOERROR
The operation was successful.
E_INVALIDARG
One or more of the parameters are invalid.
ERROR_MORE_DATA
The buffer pointed to by lpszResourceTypeName is too small to hold the requested resource type. GetResourceTypeName returns the required number of characters in the contents of pcchName.

If GetResourceTypeName is unsuccessful, it can also return an OLE-defined error value.

QuickInfo

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