HRESULT GetFriendlyName(
longcIndex// in
BSTR FAR *RetName// out
);
The GetFriendlyName function returns the friendly name for an instance based upon index position. Valid values of an index are zero through GetInstanceCount minus one.
This function returns one of the following values.
Value | Meaning |
---|---|
S_OK | Success. |
E_INVALIDARG | One or more of the arguments is invalid. |
E_OUTOFMEMORY | Out of memory. |
E_FAIL | Failure. |