[svn] GpgEX - r6 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Thu Aug 30 17:42:16 CEST 2007
Author: marcus
Date: 2007-08-30 17:41:44 +0200 (Thu, 30 Aug 2007)
New Revision: 6
Modified:
trunk/src/ChangeLog
trunk/src/gpgex-class.cc
Log:
2007-08-30 Marcus Brinkmann <marcus at g10code.de>
* gpgex-class.cc (gpgex_class::init): Also register the shell
extension for directories.
(gpgex_class::deinit): Unregister shell extension for directories.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2007-08-28 12:12:14 UTC (rev 5)
+++ trunk/src/ChangeLog 2007-08-30 15:41:44 UTC (rev 6)
@@ -1,3 +1,9 @@
+2007-08-30 Marcus Brinkmann <marcus at g10code.de>
+
+ * gpgex-class.cc (gpgex_class::init): Also register the shell
+ extension for directories.
+ (gpgex_class::deinit): Unregister shell extension for directories.
+
2007-08-28 Marcus Brinkmann <marcus at g10code.de>
* main.cc (DllRegisterServer): Do not trash gpgex_server::instance.
Modified: trunk/src/gpgex-class.cc
===================================================================
--- trunk/src/gpgex-class.cc 2007-08-28 12:12:14 UTC (rev 5)
+++ trunk/src/gpgex-class.cc 2007-08-30 15:41:44 UTC (rev 6)
@@ -77,6 +77,13 @@
RegSetValueEx (key_handle, 0, 0, REG_SZ, (BYTE *) value, strlen (value) + 1);
RegCloseKey (key_handle);
+ strcpy (key, "Directory\\ShellEx\\ContextMenuHandlers\\GpgEX");
+ RegCreateKey (HKEY_CLASSES_ROOT, key, &key_handle);
+ /* The default value is the CLSID for the class. */
+ strcpy (value, "{" CLSID_GPGEX_STR "}");
+ RegSetValueEx (key_handle, 0, 0, REG_SZ, (BYTE *) value, strlen (value) + 1);
+ RegCloseKey (key_handle);
+
#if 0
/* We also have to approve the shell extension for Windows NT. */
strcpy (key, "Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved");
@@ -104,6 +111,8 @@
#endif
RegDeleteKey (HKEY_CLASSES_ROOT,
+ "Directory\\ShellEx\\ContextMenuHandlers\\GpgEX");
+ RegDeleteKey (HKEY_CLASSES_ROOT,
"*\\ShellEx\\ContextMenuHandlers\\GpgEX");
/* Delete registry keys in reverse order. */
More information about the Gnupg-commits
mailing list