Share via


LinkResource Method

Links in a resource.

HRESULT LinkResource(
    mdAssembly  AssemblyID,
    LPCWSTR     pszFileName,
    LPCWSTR     pszNewLocation,
    LPCWSTR     pszResourceName,
    DWORD       dwFlags
) PURE;

Parameters

  • AssemblyID
    ID of the assembly.
  • pszFileName
    Name of the file.
  • pszNewLocation
    Optional new file name. If non-NULL, pszFileName will be copied to pszNewLocation.
  • pszResourceName
    Name of the resource.

Return Value

Returns S_OK if the method succeeds.

Requirements

Requires alink.h.

See Also

Concepts

ALink API (Unmanaged API Reference)

Other Resources

IALink Interface
IALink2 Interface