C# Class CygwinContextMenu.FileShellExtension

Register and unregister simple shell context menus.
Afficher le fichier Open project: Genbox/CygwinContextMenu Class Usage Examples

Méthodes publiques

Méthode Description
IsRegistered ( string fileType, string shellKeyName, bool userOnly ) : bool
Register ( string fileType, string shellKeyName, string menuText, string menuCommand, bool userOnly, bool makeExtended = false ) : void

Register a simple shell context menu.

Unregister ( string fileType, string shellKeyName, bool userOnly ) : void

Unregister a simple shell context menu.

Method Details

IsRegistered() public static méthode

public static IsRegistered ( string fileType, string shellKeyName, bool userOnly ) : bool
fileType string
shellKeyName string
userOnly bool
Résultat bool

Register() public static méthode

Register a simple shell context menu.
public static Register ( string fileType, string shellKeyName, string menuText, string menuCommand, bool userOnly, bool makeExtended = false ) : void
fileType string The file type to register.
shellKeyName string Name that appears in the registry.
menuText string Text that appears in the context menu.
menuCommand string Command line that is executed.
userOnly bool
makeExtended bool True means it will only show when CTRL key is down.
Résultat void

Unregister() public static méthode

Unregister a simple shell context menu.
public static Unregister ( string fileType, string shellKeyName, bool userOnly ) : void
fileType string The file type to unregister.
shellKeyName string Name that was registered in the registry.
userOnly bool
Résultat void