Jump to content

Adding DWORD values via INF AddReg Directive


Recommended Posts

Posted

I noticed that this page of the MDGx website ends with the following passage:

Using an INF there is not a way to add dwords in Windows 95/98/ME, but there is a way to trick the system to believe that you did:

Set a binary key to the value of 01,00,00,00. This will reflect the same as a dword of one.

This is not exactly correct. On Windows ME I was able to add DWORD values in accordance with this MSDN article, namely by using the 0x00010001 flag. I don't know if it works on Windows 95/98, but Windows ME entries like

HKLM,Software\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\atl70.dll,65537,01,00,00,00

do produce the desired DWORD values in the registry (0x00000001 in the sample entry). The MSDN artice is also useful because it lists all possible flags. For instance, you can use 65539 instead of 65537 to keep any existing value in the registry instead of replacing it.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...