帮助中心帮助中心
Windows 注册表中的项
valnames = winqueryreg('name',rootkey,subkey)
value = winqueryreg(rootkey,subkey,valname)
value = winqueryreg(rootkey,subkey)
valnames = winqueryreg('name',rootkey,subkey) 返回 Microsoft® Windows® 操作系统注册表的 rootkey\subkey 中的所有值名称。第一个参量是带引号、区分大小写的字面字符串或字符向量 'name'。
valnames
rootkey
subkey
rootkey\subkey
'name'
value = winqueryreg(rootkey,subkey,valname) 返回 rootkey\subkey 中 valname 的值。
value
valname
value = winqueryreg(rootkey,subkey) 返回 rootkey\subkey 中没有值名称属性的值。
全部折叠
根注册表项的名称,指定为区分大小写的字符串或字符向量。
示例: 'HKEY_CLASSES_ROOT'
'HKEY_CLASSES_ROOT'
子注册表项的名称,指定为字符串或字符向量。值不区分大小写。
示例: 'control panel\mouse'
'control panel\mouse'
值的名称,指定为字符串或字符向量。名称不区分大小写。
值的名称,指定为字符向量元胞数组。
int32
指定名称的值,如果从注册表中检索到的值为注册表字符串值,则指定为字符向量。如果值为 32 位整数,则 winqueryreg 将以 MATLAB® 类型 int32 的整数形式返回该值。
winqueryreg
此函数仅对下列注册表值类型有效:
字符串 (REG_SZ)
扩展的字符串 (REG_EXPAND_SZ)
32 位整数 (REG_DWORD)
在 R2006a 之前推出
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office