Windows Media Format SDK banner art
PreviousNext

IWMOutputMediaProps::GetConnectionName

The GetConnectionName method retrieves the name of the connection to be used for output.

Syntax

HRESULT GetConnectionName(
  WCHAR*  pwszName,
  WORD*  pcchName
);

Parameters

  pwszName

[out]  Pointer to a wide-character NULL-terminated string containing the name.

  pcchName

[in, out]  On input, specifies a pointer to a variable containing the length of the pwszName array in wide characters (two bytes). On output, and if the method succeeds, specifies a pointer to a character count of the connection name.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
E_INVALIDARG pwszName is NULL.
ASF_E_BUFFERTOOSMALL pcchName is not large enough for the requested name.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.