C# Class CygwinContextMenu.FileShellExtension

Register and unregister simple shell context menus.
ファイルを表示 Open project: Genbox/CygwinContextMenu Class Usage Examples

Public Methods

Method 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 method

public static IsRegistered ( string fileType, string shellKeyName, bool userOnly ) : bool
fileType string
shellKeyName string
userOnly bool
return bool

Register() public static method

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.
return void

Unregister() public static method

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
return void