IAssemblyCache::QueryAssemblyInfo method (winsxs.h)

The QueryAssemblyInfo method queries the side-by-side assembly store for assembly information and validates the files in the side-by-side assembly store against the assembly manifest.

Syntax

HRESULT QueryAssemblyInfo(
  [in, optional] DWORD         dwFlags,
  [in]           LPCWSTR       pszAssemblyName,
  [in, out]      ASSEMBLY_INFO *pAsmInfo
);

Parameters

[in, optional] dwFlags

Specifies the information to retrieve.

This parameter can be one or more of the following values or 0.

Value Meaning
QUERYASMINFO_FLAG_VALIDATE
Validates the assembly files in the side-by-side assembly store against the assembly manifest. This includes the verification of the assembly's hash and strong name signature.
QUERYASMINFO_FLAG_GETSIZE
Returns the size of all files in the assembly.

[in] pszAssemblyName

Pointer to null-terminated string value containing the fully-specified strong name of the assembly to query. If the name is not fully specified, the result of the method is undefined.

[in, out] pAsmInfo

Pointer to the ASSEMBLY_INFO structure that receives the information.

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

IAssemblyCache