You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/12/14 12:22:47 UTC

svn commit: r890275 - in /commons/sandbox/runtime/trunk/src/main: java/org/apache/commons/runtime/platform/windows/HKEY.java native/os/win32/registry.c

Author: mturk
Date: Mon Dec 14 11:22:46 2009
New Revision: 890275

URL: http://svn.apache.org/viewvc?rev=890275&view=rev
Log:
Axe DYN_DATA key. It's not documented although defined

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/HKEY.java
    commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/HKEY.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/HKEY.java?rev=890275&r1=890274&r2=890275&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/HKEY.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/platform/windows/HKEY.java Mon Dec 14 11:22:46 2009
@@ -76,6 +76,11 @@
      */
     public static final HKEY USERS              = new HKEY(0x80000003L);
 
+    /** Registry entries subordinate to this key allow you to access
+     * performance data. The data is not actually stored in the registry;
+     * the registry functions cause the system to collect the data from
+     * its source.
+     */
     public static final HKEY PERFORMANCE_DATA   = new HKEY(0x80000004L);
 
     /** Contains information about the current hardware profile of the
@@ -90,9 +95,6 @@
      */
     public static final HKEY CURRENT_CONFIG     = new HKEY(0x80000005L);
 
-    public static final HKEY DYN_DATA           = new HKEY(0x80000006L);
-
-
     private long hKey;
     private HKEY(long v)
     {

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c?rev=890275&r1=890274&r2=890275&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c Mon Dec 14 11:22:46 2009
@@ -411,7 +411,7 @@
             hkey == HKEY_CURRENT_USER ||
             hkey == HKEY_LOCAL_MACHINE ||
             hkey == HKEY_USERS ||
-            hkey == HKEY_DYN_DATA)
+            hkey == HKEY_PERFORMANCE_DATA)
             rc = 0;
         else
             rc = (int)RegCloseKey(hkey);