IAssemblyCache::CreateAssemblyCacheItem method (winsxs.h)

The CreateAssemblyCacheItem method creates an item in the assembly cache that corresponds to the side-by-side assembly being installed.

Syntax

HRESULT CreateAssemblyCacheItem(
  [in]           DWORD              dwFlags,
  [in]           PVOID              pvReserved,
  [out]          IAssemblyCacheItem **ppAsmItem,
  [in, optional] LPCWSTR            pszAssemblyName
);

Parameters

[in] dwFlags

Reserved.

[in] pvReserved

Reserved.

[out] ppAsmItem

Pointer to a location containing the pointer to the instance of the IAssemblyCacheItem that receives the information.

[in, optional] pszAssemblyName

Pointer to a null-terminated string value containing the fully-specified strong name of the assembly that is being installed. The name provided is verified to match the name of the assembly in the manifest. Partial names return FUSION_E_INVALID_NAME. If this parameter is null, the name is not verified.

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.
FUSION_E_INVALID_NAME
The full name of the assembly must be provided by pszAssemblyName.

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