Imports assemblies and unbound modules. This method is like, but works even if the file being imported does not exist on disk.
HRESULT ImportFile2( LPCWSTR pszFilename, LPCWSTR pszTargetName, IMetaDataAssemblyImport* pAssemblyScopeIn, BOOL fSmartImport, mdToken* pImportToken, IMetaDataAssemblyImport** ppAssemblyScope, DWORD* pdwCountOfScopes ) PURE;
Name of file to be imported.
Optional output file name that can be used to rename the file as it is linked into the assembly.
If TRUE, ImportTypes is used, otherwise importing must be performed manually.
Receives the ID for the file or assembly.
Receives theinterface. NULL if the file is not an assembly.
Receives the found of files and/or scopes imported.