gpt4 book ai didi

VB6读取注册表项下的所有值

转载 作者:行者123 更新时间:2023-12-02 01:19:53 25 4
gpt4 key购买 nike

在 Visual Basic 6 中,如何获取下面的所有键值,例如:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

这将返回以下值(取决于用户):

"C:\Program Files\Steam\Steam.exe" -silent

"C:\Program Files\Skype\Phone\Skype.exe" /nosplash /minimized

"C:\Program Files\Windows Live\Messenger\msnmsgr.exe" /background

Etc...

由于按键不是恒定的,我不知道如何读取它们。感谢您的帮助!

最佳答案

您正在寻找 API 函数 RegEnumKeyEx - 您可以在 MSDN here 找到 VB 示例

RegEnumKeyEx Function

Enumerates the subkeys of the specified open registry key. The function retrieves information about one subkey each time it is called.

关于VB6读取注册表项下的所有值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6433893/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com