Is there a new macro to determine in code if the application is running on WinRT? As I’m working with LoadLibrary, it would be great if there is a macro to replace all calls to LoadLibrary with one to LoadPackagedLibrary…
I’m understanding the documentation correct as in I can load any DLL (as long as it’s inside my package) via LoadPackagedLibrary, right?! (And as long as that DLL doesn’t use black-listed APIs…)
I recently updated to Visual Studio 2012, and think I found the answer to my question:
Inside the Microsoft Headers the Macro
WINAPI_FAMILY_PARTITIONis used to determine the “Level” of WinAPI. Currently there areWINAPI_PARTITION_DESKTOPandWINAPI_PARTITION_APP, therefore I “guess” that via this macro one can differentiate between Desktop and Metro…The two macros lead to another set of macros:
#define WINAPI_FAMILY_APP WINAPI_PARTITION_APPand#define WINAPI_FAMILY_DESKTOP_APP (WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP). Therefore ifWINAPI_FAMILY_APPis defined one should be able to assume that it’s a Metro application…