Freigeben über


ImportFileEx2 Method

Imports assemblies and unbound modules. This method is like ImportFile Method, but works even if the file being imported does not exist on disk.

HRESULT ImportFileEx2(
    LPCWSTR pszFilename,
    LPCWSTR pszTargetName,
    IMetaDataAssemblyImport* pAssemblyScopeIn,
    BOOL fSmartImport,
    DWORD dwOpenFlags,
    mdToken* pImportToken,
    IMetaDataAssemblyImport** ppAssemblyScope,
    DWORD* pdwCountOfScopes
) PURE;

Parameters

  • pszFilename
    Name of file to be imported.
  • pszTargetName
    Optional name of target file.
  • fSmartImport
    If TRUE, ImportTypes is used, otherwise importing must be performed manually.
  • pImportToken
    Receives unique ID for the assembly or file.
  • pdwCountOfScopes
    Receives the number of files and/or scopes imported.

Return Value

Returns S_OK if the method succeeds.

Requirements

Requires alink.h.

See Also

Concepts

ALink API (Unmanaged API Reference)

Other Resources

IALink2 Interface
IALink Interface