(a) #define _WIN32_WINNT 0x0400 #define _ATL_FREE_THREADED #if defined(_WIN32_WCE) #undef _WIN32_WINNT #endif (b) #if defined(_WIN32_WCE) #define _ATL_FREE_THREADED #else // desktop build #define _WIN32_WINNT 0x0400 #define _ATL_APARTMENT_THREADED #endif