"More data is available" Error With _winreg Module

John Abel johnfabel at btinternet.com
Sun Feb 9 01:56:26 CET 2003


I'm trying to query the registry (HKEY_PERFORMANCE_DATA) with the 
following code:

regHandle = _winreg.ConnectRegistry( None,
for valInd in range( _winreg.QueryInfoKey( regHandle )[1] ):
     (valOne, valTwo, valThree) =  _winreg.EnumValue( regHandle, valInd )

However, I keep getting :

WindowsError: [Errno 234] More data is available

Has anyone come across this before?  I've an idea, that the return data 
is bigger than expected, something not unusual with 
HKEY_PERFORMANCE_DATA.  With _winreg being a library, it's a bit hard to 
see what it's expecting.



More information about the Python-list mailing list