RamonUnch / GreenPad

Fork from roytam1 fork from original GreenPad
22 stars 0 forks source link

Improve OSVersion checking #62

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago

1) Avoid static member functions ad use const 2) Simplify version comparison bu using an ordered version DWORD (MMmmBBBB) (Major, minior, Build) so that version can be compared with a single operation instead of three. 3) Refactor the rest of the code: a. use app().function() instead of App::function() because member are no longer static b. functions were modified to be simpler so the calling convention has changed