[Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA

2008-12-19 Thread Christian Franke
The command 'ls /proc/registry/HKEY_PERFORMANCE_DATA' returns garbage, because the registry functions don't work or work different for this (pseudo-)key. This patch fixes the directory listing and allows access to the raw binary counter data, e.g. All Global values, except Costly values:

Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA

2008-12-19 Thread Corinna Vinschen
On Dec 19 14:58, Christian Franke wrote: * fhandler_registry.cc (perf_data_files): New table. (PERF_DATA_FILE_COUNT): New constant. (fhandler_registry::exists): Add check for HKEY_PERFORMANCE_DATA value names. (fhandler_registry::fstat): For

Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA

2008-12-19 Thread Chris January
On Fri, Dec 19, 2008 at 1:58 PM, Christian Franke wrote: (fhandler_registry::fill_filebuf): Use larger buffer to speed up access to HKEY_PERFORMANCE_DATA values. Remove check for possible subkey. Add RegCloseKey (). + /* RegQueryValueEx () opens

Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA

2008-12-19 Thread Christian Franke
Chris January wrote: On Fri, Dec 19, 2008 at 1:58 PM, Christian Franke wrote: (fhandler_registry::fill_filebuf): Use larger buffer to speed up access to HKEY_PERFORMANCE_DATA values. Remove check for possible subkey. Add RegCloseKey (). + /*