description | title | ms.date | api_name | api_location | api_type | f1_keywords | helpviewer_keywords | ms.assetid | topic_type | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: ImportFileEx2 Method |
ImportFileEx2 Method |
03/30/2017 |
|
|
|
|
|
02c789fd-16fc-48c6-9619-56e87e2a37ca |
|
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;
pszFilename
Name of file to be imported.
pszTargetName
Optional name of target file.
pAssemblyScopeIn
Optional import scope IMetaDataAssemblyImport Interface interface.
fSmartImport
If TRUE, ImportTypes is used, otherwise importing must be performed manually.
dwOpenFlags
Flags to be passed along to OpenScope Method.
pImportToken
Receives unique ID for the assembly or file.
ppAssemblyScope
Receives assembly import scope IMetaDataAssemblyImport Interface interface. Can be NULL if the file is not an assembly.
pdwCountOfScopes
Receives the number of files and/or scopes imported.
Returns S_OK if the method succeeds.
Requires alink.h.