winapi - Tool for determining version of Win32 APIs used by C++ code? -



winapi - Tool for determining version of Win32 APIs used by C++ code? -

i'm modifying big c++ project first release windows 7-only work on vista , xp.

the main work alter w7 api calls utilize getprocaddress @ runtime (to avoid static linking methods not available on other platforms), , i'm wondering if there tools can help identify calls need changed -- examining c++ code itself.

failing that, best seek building project against older windows sdk? -- example: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6510

#define winver 0x501

now newer windows xp cause compilation error.

replace causes error until none remain.

if have sed-fu, can write filter straight finds #if winver > 0x501 blocks in windows headers, me, bit out of scope :-)

c++ winapi api version

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -