大网数据广告活动
安装更新与部署

ICE70

· 52CE 我爱测

ICE70 verifies that integer values for registry entries are specified correctly.

ICE70 verifies that integer values for registry entries are specified correctly. Values of the form ##str, #%unexpanded str are not validated. Values of the form #xhex, #Xhex, #integer, and #[property] are validated. The following table provides a brief overview.

Value Validation
##str valid
#%unexpanded str valid
#xHex,#XHex Validate for valid hex characters (0-9,a-f,A-F). Properties are allowed here.
#+int, #-int, #int Validate for valid numeric characters (0-9). Properties are allowed here.

The syntax for an integer value to be entered into the registry is #integer where integer is numerical.

Result

ICE70 reports an error if integer values for registry entries are not specified correctly.

Example

ICE70 reports the following errors for the given example.

The value #12xz34 is an invalid numeric value for registry entry Reg1. If you meant to use a string, then the string value entry must be preceded by ## not #.

To fix this error: If you want the value to be numeric, change the value to use all numeric characters. If you want the value to be a string, it must be preceded by two '#' (##) instead of just one.

The value #xz34 is an invalid hexadecimal value for registry entry Reg2.

To fix this error: Valid hexadecimal characters are 0-9, A-F, and a-f. Only these characters can follow the #x (or #X).

Registry table (partial)

Registry Value
Reg1 #12xz34
Reg2 #xz34

Remarks

  • #[myproperty] is valid.
  • #[myproperty is not valid (missing ending bracket).
  • #[myprop1] [myprop2 is valid. (Even though the last one is missing the ending bracket, myprop1 could evaluate to #str so you would have ##str [myprop2, which is valid
  • #]myproperty[ is not valid
  • Any embedded property in a value string cannot be in [$compkey], [#filekey], or [!filekey] form because these are not numeric. However, there is one exception, #[myproperty] [$compkey] (or [#filekey] or [!filekey]) is valid because, as with the preceding, [myproperty] can evaluate to #str.

Related topics

ICE Reference

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。