I plan to write a code snippet using the media API that is available after Vista. I want to add code inside the #if block something like ...
#if <SomeMacro>
#endif
I could not find a macro to determine the version of the operating system. How is this usually done on windows? I found that _WIN32 and _WIN64 detect 32-bit and 64-bit, but not macros to determine api availability. Is there a better way to isolate code based on API accessibility in vc ..?
Thank you, Abhinay.
source
share