/ src / modules / LightSwitch / LightSwitchModuleInterface / ExportedFunctions.cpp
ExportedFunctions.cpp
 1  #include "pch.h"
 2  #include "ThemeHelper.h"
 3  
 4  extern "C" __declspec(dllexport) void __cdecl LightSwitch_SetSystemTheme(bool isLight)
 5  {
 6      SetSystemTheme(isLight);
 7  }
 8  
 9  extern "C" __declspec(dllexport) void __cdecl LightSwitch_SetAppsTheme(bool isLight)
10  {
11      SetAppsTheme(isLight);
12  }
13  
14  extern "C" __declspec(dllexport) bool __cdecl LightSwitch_GetCurrentSystemTheme()
15  {
16      return GetCurrentSystemTheme();
17  }
18  
19  extern "C" __declspec(dllexport) bool __cdecl LightSwitch_GetCurrentAppsTheme()
20  {
21      return GetCurrentAppsTheme();
22  }