IWindowsShellLinkClient interface

Namespace Runic.Platform.Administration.Windows.Shortcuts · Runic.Platform.Administration.Windows 0.7.0-preview.5

public interface IWindowsShellLinkClient

Shell-link operations, replaceable by application-owned fakes.

Methods

CreateAsync

Task CreateAsync(string path, ShellLinkSpecification specification, bool replaceExisting = false, CancellationToken cancellationToken = default)

Creates a link; replacing an existing link requires explicit opt-in.

FindAsync

Task<ShellLinkSnapshot?> FindAsync(string path, CancellationToken cancellationToken = default)

Reads an existing shell link without resolution; null means absent.

ResolveAsync

Task<ShellLinkSnapshot> ResolveAsync(string path, TimeSpan timeout, CancellationToken cancellationToken = default)

Explicitly resolves a target without UI or writing the source link.

UpdateAsync

Task UpdateAsync(string path, ShellLinkUpdate update, CancellationToken cancellationToken = default)

Updates selected fields while preserving unmodified metadata.