C# Class vbAccelerator.Components.Shell.ShellLink

Summary description for ShellLink.
Inheritance: IDisposable
Show file Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose the object, releasing the COM ShellLink object

Open ( string linkFile ) : void

Loads a shortcut from the specified file

Open ( string linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags ) : void

Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set.

Open ( string linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, ushort timeOut ) : void

Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set. If no SLR_NO_UI is specified, you can also specify a timeout.

Save ( ) : void

Saves the shortcut to ShortCutFile.

Save ( string linkFile ) : void

Saves the shortcut to the specified file

ShellLink ( ) : System

Creates an instance of the Shell Link object.

ShellLink ( string linkFile ) : System

Creates an instance of a Shell Link object from the specified link file

Private Methods

Method Description
getIcon ( bool large ) : Icon

Method Details

Dispose() public method

Dispose the object, releasing the COM ShellLink object
public Dispose ( ) : void
return void

Open() public method

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

Open() public method

Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set.
public Open ( string linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags ) : void
linkFile string The shortcut file (.lnk) to load
hWnd System.IntPtr The window handle of the application's UI, if any
resolveFlags EShellLinkResolveFlags Flags controlling resolution behaviour
return void

Open() public method

Loads a shortcut from the specified file, and allows flags controlling the UI behaviour if the shortcut's target isn't found to be set. If no SLR_NO_UI is specified, you can also specify a timeout.
public Open ( string linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, ushort timeOut ) : void
linkFile string The shortcut file (.lnk) to load
hWnd System.IntPtr The window handle of the application's UI, if any
resolveFlags EShellLinkResolveFlags Flags controlling resolution behaviour
timeOut ushort Timeout if SLR_NO_UI is specified, in ms.
return void

Save() public method

Saves the shortcut to ShortCutFile.
public Save ( ) : void
return void

Save() public method

Saves the shortcut to the specified file
public Save ( string linkFile ) : void
linkFile string The shortcut file (.lnk)
return void

ShellLink() public method

Creates an instance of the Shell Link object.
public ShellLink ( ) : System
return System

ShellLink() public method

Creates an instance of a Shell Link object from the specified link file
public ShellLink ( string linkFile ) : System
linkFile string The Shortcut file to open
return System