IAssemblyName::GetName method (winsxs.h)
The GetName method returns the name portion of the assembly name.
Syntax
HRESULT GetName(
[in, out] LPDWORD lpcwBuffer,
[out] LPWSTR pwzName
);
Parameters
[in, out] lpcwBuffer
When calling this method, set this parameter to the size of the buffer specified by pwzName. The specify the size in characters and include the null terminator. When the method returns, the value of lpcwBuffer is the size of the name returned.
[out] pwzName
Pointer to the string value that receives the name.
Return value
This method can return one of these values.
Return value | Description |
---|---|
|
The method succeeded. |
|
The method did not succeed. |
Remarks
This method is equivalent to using the GetProperty method with the PropertyId set to the ASM_NAME_NAME option of ASM_NAME. In case ASM_NAME_NAME is not set, the size of the buffer returned by lpcwBuffer is 0, and the content of pwzName is undefined.
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 |