I am planning to write a piece of code using the media foundation API which is available after vista. I want to add the code inside a #if block something like...
#if <SomeMacro>
// all the classes using MediaFoundation go here.
#endif
I could not find a macro to detect the operating system version. How is this normally done on windows?? I found _WIN32 and _WIN64 to detect 32-bit and 64-bit but no macros to determine api availability. Is there a better way of isolating code based on API availability in vc..?
Thanks, Abhinay.