次の方法で共有


ImportFileEx Method

Imports indicated assembly or unbound module.

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

Parameters

  • pszFilename
    Fully qualified name of file from which to import.
  • pszTargetName
    Optional name of target file.
  • fSmartImport
    If TRUE, ImportTypes is used, otherwise importing must be performed manually.
  • pImportToken
    Receives ID of the file being imported.
  • pdwCountOfScopes
    Receives count of imported files and/or scopes.

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