Closed Bug 290112 Opened 20 years ago Closed 17 years ago

Have a central code module that calls GetVersionEx

Categories

(Core :: Widget: Win32, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: paper, Unassigned)

Details

http://lxr.mozilla.org/seamonkey/search?string=GetVersionEx%28%26 We use GetVersionEx on various occasions to get the Windows version we are on and branch accordingly. Each module that has this logic ends up having it's own GetVersionEx(..) call (sometimes multiple for different reasons!). I propose a global function GetWindowsVersion() which returns a enum specifying the Windows Version. The enum would go in order from oldest to newest Windows version, so that > and < comparisons can be used. GetVersionEx would only need to be called once for the entire time of Mozilla. I'm guessing the best place to put it is in E:\MozDev\MozNoDebug\mozilla\widget\src\windows, maybe a class named WindowsOSInfo, with one static function. More could be added if more OS information is needed.
sorry, that should read mozilla/widget/src/windows, and not my personal drive and directories :)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.