IAssemblyName::GetDisplayName method (winsxs.h)

The GetDisplayName method gets a string representation of the side-by-side assembly name.

Syntax

HRESULT GetDisplayName(
  [out]     LPWSTR  szDisplayName,
  [in, out] LPDWORD pccDisplayName,
  [in]      DWORD   dwDisplayFlags
);

Parameters

[out] szDisplayName

A pointer to a buffer that receives the string value that contains the assembly name.

[in, out] pccDisplayName

When calling this method, set this parameter to the size of the buffer specified by szDisplayName. Specify the size in characters and include the null terminator. When the method returns, the value of pccDisplayName is the size of the name returned.

[in] dwDisplayFlags

One or more of the options of the ASM_DISPLAY_FLAGS enumeration to specify which portions of the assembly's name to include in the string representation of the assembly name. The default for dwDisplayFlags is 0, which returns all portions of the assembly's display name.

Return value

This method can return one of these values.

Return value Description
S_OK
The method succeeded.
S_FALSE
The method did not succeed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winsxs.h
DLL Sxs.dll

See also

IAssemblyName