Previous | Next |
The GetName method retrieves the name of a profile.
Syntax
HRESULT GetName(
WCHAR* pwszName,
DWORD* pcchName
);
Parameters
pwszName
[out] Pointer to a wide-character NULL-terminated string containing the name.
pcchName
[in, out] On input, specifies the length of the pwszName string. On output, and if the method succeeds, specifies a pointer to count of the actual number of characters in the name.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Meaning |
E_INVALIDARG | The pcchName parameter is NULL. |
ASF_E_BUFFERTOOSMALL | The pwszName parameter is not large enough. |
E_UNEXPECTED | The method failed for an unspecified reason. |
Remarks
Profiles have names and descriptions, for use when displaying lists of profiles.
See Also
Previous | Next |