Example #1
0
        public ShellCommand RegisterShellCommand(string shellname, string displayname, string command)
        {
            // Note: Should we prefix the shellname with the application name? For instance Winamp uses "Winamp." as prefix for it's names.

            ShellCommand result = new ShellCommand(_classid, shellname, displayname);

            if (command != null)
            {
                result.Command = command;
            }

            return(result);
        }
        public ShellCommand RegisterDirectoryShellCommand(string shellname, string displayname, string command)
        {
            // Note: Should we prefix the shellname with the application name? For instance Winamp uses "Winamp." as prefix for it's names.

            ShellCommand result = new ShellCommand("Directory", shellname, displayname);

            if (command != null)
            {
                result.Command = command;
            }

            return result;
        }