How do I add a DWORD value from a .INF file?

John Savill

March 6, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. An inf file has many uses including the creation of registry keys.Normally a string value is created but to create a DWORD use the followingformat:

[Version]
Signature = "$Windows NT$" 
Provider=%Provider%

[Strings]
Provider="SavillTech Ltd"

[DefaultInstall]
AddReg = AddReg
DelReg = DelReg
UpdateInis = UpdateInis

[AddReg]
HKLM,"SoftwareSavillTech","A DWORD",65537,ee,ff,c0,00
[DelReg]
[UpdateInis] 

The important part is after the value name "A DWORD" is the typeand a 0 in lowest bit means a string value, a 1 means another type. 0x10000 is aDWORD value hence 65537. The rest if the value is in four hexadecimal numbers.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like