Click to See Complete Forum and Search --> : How do I set Win98 compatibility mode for an app in Win2K programmatically?


bad_source_bios
December 19th, 2001, 10:10 AM
Were currently working on updating our device driver because it has
problems in Windows 2000 and XP that it doesnt have in other supported
versions of Windows. We can let our users work our product in 2000 & XP if
they set 98 compatibility mode, which is set through the shortcut to the
program. If you have Win2K SP2 installed, you can select the SHORTCUT's properties to set Win95 or WinNT (at least) compatibility. How do I do this programmatically? The following answer (I didn't get it here) sure was a nice try, but I found no such keys in the registry of my Win2K machine.
This is what one guy said:
..you can
manipulate the registry to do this.
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers
Add a string string value that is the target for the shortcut. For example:
"C:\Windows\Notepad.exe"
The options for the values are:
WIN95, WIN98, NT4SP5, WIN2000, 256COLOR, 640X480, DIASBLETHEMES
So if you want to set compatibility with Windows 95, with 256 color and 640
x 480 resolution, you would add this value
"WIN95 256COLOR 640X480"

bad_source_bios
December 20th, 2001, 09:27 AM
I notice that I didn't make clear in my earlier post, that I DID try making these entries, directly through regedit, also through the IS DEV 7 IDE.