I just a had a quick look on my Win98 machine and found the relevant entry at HKEY_LOCAL_MACHINE\Config\0001\Display\Settings\Resolution.