Exemplo n.º 1
0
        public RscRegistryValueList(HKEY hk, string sPath, string sTitle = "Item")
        {
            m_hk     = hk;
            m_sPath  = sPath;
            m_sTitle = sTitle;

            m_iCountWritten = RscRegistry.ReadDWORD(m_hk, m_sPath, sTitle + "Count", 0);
            for (int i = 0; i < m_iCountWritten; i++)
            {
                string sVal = RscRegistry.ReadString(m_hk, m_sPath, sTitle + i.ToString(), "");
                m_a.Add(sVal);
            }
        }
Exemplo n.º 2
0
        public static string GetFileGroupEx(string sExtension)
        {
            if (sExtension.Length == 0)
            {
                return("");
            }
            if (sExtension[0] != '.')
            {
                sExtension = "." + sExtension;
            }

            return(RscRegistry.ReadString(HKEY.HKEY_CLASSES_ROOT, "()" + sExtension, "Group", ""));
        }
Exemplo n.º 3
0
 public static string GetViewerAppAssyName(string sGroup)
 {
     return(RscRegistry.ReadString(HKEY.HKEY_CLASSES_ROOT, "Groups\\" + sGroup, "ViewerAppAssyName", ""));
 }