"More data is available" Error With _winreg Module

John Abel johnfabel at btinternet.com
Sat Feb 8 19:56:26 EST 2003


Hi,

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

regHandle = _winreg.ConnectRegistry( None,
					_winreg.HKEY_PERFORMANCE_DATA )
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.

Thanks.

John






More information about the Python-list mailing list