Skip to content

Instantly share code, notes, and snippets.

@chrisnas
Last active February 10, 2022 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisnas/46e4968e4d9b6ffb48bb6f9a430fe617 to your computer and use it in GitHub Desktop.
Save chrisnas/46e4968e4d9b6ffb48bb6f9a430fe617 to your computer and use it in GitHub Desktop.
hr = pInfo->GetAssemblyInfo(assemblyId, 0, &nameLen, NULL, NULL, NULL);
if (SUCCEEDED(hr))
{
WCHAR* pszName = new WCHAR[nameLen]; // count the trailing \0
hr = pInfo->GetAssemblyInfo(assemblyId, nameLen, &nameLen, pszName, NULL, NULL);
oss << pszName;
delete [] pszName;
}
else
oss << L"<UNKNOWN>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment