at start i thought it was me who was doing things wrong, but after many try and the fact that i handled registry well without any problems in Visual Basic, i ended with the conclusion that there is a bug.
I'm just using the classic API, the first is :
RegOpenKeyEx_
Just with that, 9 time on 10 try the API failed to open, so all the following code can't work.
I tested in Visual Basic, the key is opened successfully each time, and in PureBasic, after many many try, suddently the key is opened successfuly, but doesn't work the most of time.
I simply use this line :
where "hkey" = #HKEY_LOCAL_MACHINE = $80000002RegOpenKeyEx_( hKey, strPath, 0, #KEY_READ, Ret )
"strpath" = a valid existing path inthe registry
the API failed and take a value different than 0.
I'm using Windows XP + SP1 + all last update, CPU Athlon XP 2000+, chipset VIA KT400, PureBasic 3.72
Someone else can do the test on WinXP ?


