I wouldn't have believed it, except I saw it with my own eyes. Sure enough, Windows 2000 retains the creation order. I even modified the code to leave the keys over a cold boot, and it still retained the creation order. I had always assumed regedit was displaying items in the order it got from RegEnumValue. Well, today was a good day, I learned something new.
Does anyone know if the same is true of key ordering? -- Jeff Smith --- Jon Bright <[EMAIL PROTECTED]> wrote: > Marcus Meissner wrote: > > > > Please give more details on that bug. > > I'll go one better. Attached is a test case. In Windows, RegEnumValue > returns the keys in the order they were created in. Wine will, of > course, reorder them. Shachar mentions newer versions of Explorer > depend on Windows behaviour - I don't know about that, but I do know > that the Tool palette in Borland C++Builder 5 appears in the wrong order > because it depends on the keys not being reordered. > > The test case runs on WinXP without error. Since apps depend on this > behaviour, I'm assuming it's not windows-version dependent. > > -- > Jon Bright > Lead Programmer, Silicon Circus Ltd. > http://www.siliconcircus.com __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com