我想获取特定键路径下的所有注册表值,但RegEnumValue()总是返回错误代码259作为ERROR_NO_MORE_ITEMS并且sectionValue具有无意义的值。我手动检查注册表,在指定的键下有值。例如。关键是MyTestApp键值为ManualTestCase=10关键值为AutomationTestCase=50HKEYhKey;//registrykeyhandleLONGlResult;//resultofregistryoperationsDWORDdwType,dwSize=0;//trytoopenthekeythatwearecurrentlypointin