Annoying directinput registry keys

Started by
2 comments, last by MGB 19 years, 5 months ago
Hi all, DirectInput has an annoying habit of creating a key for every unique app run in the registry at:

HKEY_USERS\S-1-5-21<lotsa numbers>\Software\Microsoft\DirectInput\AppName.exeMORENUMBERS
Does anyone know how to turn off this key creation - I did it with my last windows setup but had to reinstall windows recently and forgot how to turn this off :( P.S. If you're developing something with directinput, have a look at the key above - there may be *thousands* of them - one for each time you recompile your app and run it!!!
Advertisement
In the DirectX SDK documentation at:

DirectInput ->
Programming Tips and Tools ->
Avoiding Duplicate Registry Keys

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Simon is right. Check out the documentation there for a full explanation. I found the docs a little ambiguous as to where to create the key, and what its value should be (perhaps it's just me).

I have a .reg file for setting the value and it looks like this in text form

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\DirectInput]
"AppIdFlag"=hex:03

a
Ah, thanking you both!

This topic is closed to new replies.

Advertisement