C# Class SystemEx.ShellLink

Utility class to aid working with shortcut (.lnk) files.
Inheritance: IDisposable
Mostrar archivo Open project: pvginkel/SystemEx

Private Properties

Property Type Description
Dispose void
Open void
Open void
getIcon System.Drawing.Icon

Public Methods

Method Description
Dispose ( ) : void

Releases all resources used by the ShellLink.

Open ( string linkFile ) : void

Loads a shortcut from the specified location.

Save ( ) : void

Saves the shortcut to the path stored in ShortcutFile.

Save ( string linkFile ) : void

Saves the shortcut to the specified location/

ShellLink ( ) : System

Initializes a new instance of the ShellLink class.

ShellLink ( string linkFile ) : System

Initializes a new instance of the ShellLink class from a specific link file.

Private Methods

Method Description
Dispose ( bool disposing ) : void
Open ( string linkFile, IntPtr hWnd, ShellLinkResolveType resolveFlags ) : void
Open ( string linkFile, IntPtr hWnd, ShellLinkResolveType resolveFlags, ushort timeout ) : void
getIcon ( bool large ) : Icon

Method Details

Dispose() public method

Releases all resources used by the ShellLink.
public Dispose ( ) : void
return void

Open() public method

Loads a shortcut from the specified location.
public Open ( string linkFile ) : void
linkFile string The shortcut file to load.
return void

Save() public method

Saves the shortcut to the path stored in ShortcutFile.
public Save ( ) : void
return void

Save() public method

Saves the shortcut to the specified location/
public Save ( string linkFile ) : void
linkFile string The path to store the shortcut to.
return void

ShellLink() public method

Initializes a new instance of the ShellLink class.
public ShellLink ( ) : System
return System

ShellLink() public method

Initializes a new instance of the ShellLink class from a specific link file.
public ShellLink ( string linkFile ) : System
linkFile string The Shortcut file to open.
return System