IContactProperties::GetLabels method (icontact.h)
Retrieves the labels for a specified array element name.
Syntax
HRESULT GetLabels(
[in] LPCWSTR pszArrayElementName,
[in] DWORD dwFlags,
[in, out] LPWSTR pszLabels,
[in] DWORD cchLabels,
[in, out] DWORD *pdwcchLabelsRequired
);
Parameters
[in] pszArrayElementName
Type: LPCWSTR
Specifies the array element name.
[in] dwFlags
Type: DWORD
Must be CGD_DEFAULT.
[in, out] pszLabels
Type: LPWSTR
Specifies user-allocated buffer to store the labels.
[in] cchLabels
Type: DWORD
Specifies allocated buffer size in characters.
[in, out] pdwcchLabelsRequired
Type: DWORD*
On failure, contains the required size for pszLabels.
Return value
Type: HRESULT
Returns one of the following values:
Return code | Description |
---|---|
|
Retrieval successful. |
|
No data found for this property name. |
|
Unable to get value for this property due to schema. |
|
pszLabels was not large enough to store the value. The required buffer size is stored in *pdwcchLabelsRequired. |
Remarks
The user-allocated buffer in pszLabels receives a concatenated list of null-terminated strings, followed by an empty string. In other words, the last 4 bytes will be zero. For example, L"str1\0str2\0\0". NOTE: Succeeds only for multi-value properties. Also, may return labels in a different order than they were set.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | icontact.h (include Contact.h) |
DLL | Wab32.dll (Version 6.0 or later) |