RetroArch/frontend/drivers/platform_win32.c

593 lines
18 KiB
C
Raw Normal View History

2015-04-07 19:51:57 +00:00
/* RetroArch - A frontend for libretro.
2017-01-22 12:40:32 +00:00
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2017 - Brad Parker
2015-04-07 19:51:57 +00:00
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
2016-11-06 23:36:58 +00:00
*
* You should have received a copy of the GNU General Public License along with RetroArch.
2016-11-06 23:32:42 +00:00
* If not, see <http://www.gnu.org/licenses/>.
2015-04-07 19:51:57 +00:00
*/
#include <stdint.h>
#include <stddef.h>
#include <string.h>
2016-11-29 19:26:33 +00:00
#include <retro_miscellaneous.h>
2015-06-15 20:45:02 +00:00
#include <windows.h>
2016-09-11 12:55:29 +00:00
2015-09-15 02:49:10 +00:00
#include <boolean.h>
2016-09-11 12:55:29 +00:00
#include <compat/strl.h>
2015-06-15 20:45:02 +00:00
#include <dynamic/dylib.h>
#include <lists/file_list.h>
#include <file/file_path.h>
#include <string/stdstring.h>
2015-06-15 20:45:02 +00:00
2016-09-11 12:54:34 +00:00
#ifdef HAVE_CONFIG_H
#include "../../config.h"
#endif
2015-12-06 17:12:40 +00:00
#ifdef HAVE_MENU
#include "../../menu/menu_driver.h"
#endif
2015-06-15 20:45:02 +00:00
2016-09-11 12:54:34 +00:00
#include "../frontend_driver.h"
#include "../../configuration.h"
2016-08-11 23:37:12 +00:00
#include "../../defaults.h"
2017-05-11 07:11:46 +00:00
#include "../../retroarch.h"
2016-09-11 12:54:34 +00:00
#include "../../verbosity.h"
2018-02-04 23:25:03 +00:00
#include "../../ui/drivers/ui_win32.h"
2016-04-28 14:00:43 +00:00
/* We only load this library once, so we let it be
* unloaded at application shutdown, since unloading
* it early seems to cause issues on some systems.
*/
#ifdef HAVE_DYNAMIC
static dylib_t dwmlib;
static dylib_t shell32lib;
#endif
VOID (WINAPI *DragAcceptFiles_func)(HWND, BOOL);
static bool dwm_composition_disabled;
static bool console_needs_free;
static void gfx_dwm_shutdown(void)
{
#ifdef HAVE_DYNAMIC
if (dwmlib)
dylib_close(dwmlib);
if (shell32lib)
dylib_close(shell32lib);
dwmlib = NULL;
shell32lib = NULL;
#endif
}
static bool gfx_init_dwm(void)
{
2017-08-12 16:15:26 +00:00
HRESULT (WINAPI *mmcss)(BOOL);
static bool inited = false;
if (inited)
return true;
atexit(gfx_dwm_shutdown);
#ifdef HAVE_DYNAMIC
shell32lib = dylib_load("shell32.dll");
if (!shell32lib)
{
RARCH_WARN("Did not find shell32.dll.\n");
}
dwmlib = dylib_load("dwmapi.dll");
if (!dwmlib)
{
RARCH_WARN("Did not find dwmapi.dll.\n");
return false;
}
DragAcceptFiles_func =
(VOID (WINAPI*)(HWND, BOOL))dylib_proc(shell32lib, "DragAcceptFiles");
mmcss =
(HRESULT(WINAPI*)(BOOL))dylib_proc(dwmlib, "DwmEnableMMCSS");
#else
DragAcceptFiles_func = DragAcceptFiles;
#if 0
mmcss = DwmEnableMMCSS;
#endif
#endif
if (mmcss)
{
RARCH_LOG("Setting multimedia scheduling for DWM.\n");
mmcss(TRUE);
}
inited = true;
return true;
}
static void gfx_set_dwm(void)
{
HRESULT ret;
2017-08-12 16:15:26 +00:00
HRESULT (WINAPI *composition_enable)(UINT);
settings_t *settings = config_get_ptr();
if (!gfx_init_dwm())
return;
2017-04-27 22:53:06 +00:00
if (settings->bools.video_disable_composition == dwm_composition_disabled)
return;
#ifdef HAVE_DYNAMIC
composition_enable =
(HRESULT (WINAPI*)(UINT))dylib_proc(dwmlib, "DwmEnableComposition");
#endif
if (!composition_enable)
{
RARCH_ERR("Did not find DwmEnableComposition ...\n");
return;
}
2017-04-27 22:53:06 +00:00
ret = composition_enable(!settings->bools.video_disable_composition);
if (FAILED(ret))
RARCH_ERR("Failed to set composition state ...\n");
2017-04-27 22:53:06 +00:00
dwm_composition_disabled = settings->bools.video_disable_composition;
}
2015-06-02 16:28:51 +00:00
static void frontend_win32_get_os(char *s, size_t len, int *major, int *minor)
{
2018-04-09 15:35:27 +00:00
char buildStr[11] = {0};
bool server = false;
const char *arch = "";
bool serverR2 = false;
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500
/* Windows 2000 and later */
2018-04-09 15:35:27 +00:00
SYSTEM_INFO si = {{0}};
OSVERSIONINFOEX vi = {0};
vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
2015-04-18 18:41:17 +00:00
2017-12-07 23:49:35 +00:00
GetSystemInfo(&si);
2017-12-07 23:49:35 +00:00
/* Available from NT 3.5 and Win95 */
GetVersionEx((OSVERSIONINFO*)&vi);
2017-12-07 23:49:35 +00:00
server = vi.wProductType != VER_NT_WORKSTATION;
serverR2 = GetSystemMetrics(SM_SERVERR2);
switch (si.wProcessorArchitecture)
{
case PROCESSOR_ARCHITECTURE_AMD64:
arch = "x64";
break;
case PROCESSOR_ARCHITECTURE_INTEL:
arch = "x86";
break;
case PROCESSOR_ARCHITECTURE_ARM:
arch = "ARM";
break;
default:
break;
}
#else
OSVERSIONINFO vi = {0};
vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
/* Available from NT 3.5 and Win95 */
2017-12-07 23:49:35 +00:00
GetVersionEx(&vi);
#endif
if (major)
*major = vi.dwMajorVersion;
if (minor)
*minor = vi.dwMinorVersion;
if (vi.dwMajorVersion == 4 && vi.dwMinorVersion == 0)
snprintf(buildStr, sizeof(buildStr), "%lu", (DWORD)(LOWORD(vi.dwBuildNumber))); /* Windows 95 build number is in the low-order word only */
else
snprintf(buildStr, sizeof(buildStr), "%lu", vi.dwBuildNumber);
switch (vi.dwMajorVersion)
2015-04-18 18:41:17 +00:00
{
case 10:
if (server)
strlcpy(s, "Windows Server 2016", len);
else
strlcpy(s, "Windows 10", len);
break;
2015-04-18 18:41:17 +00:00
case 6:
switch (vi.dwMinorVersion)
2015-04-18 18:41:17 +00:00
{
case 3:
if (server)
strlcpy(s, "Windows Server 2012 R2", len);
else
strlcpy(s, "Windows 8.1", len);
2015-04-18 18:41:17 +00:00
break;
case 2:
if (server)
strlcpy(s, "Windows Server 2012", len);
else
strlcpy(s, "Windows 8", len);
2015-04-18 18:41:17 +00:00
break;
case 1:
if (server)
strlcpy(s, "Windows Server 2008 R2", len);
else
strlcpy(s, "Windows 7", len);
2015-04-18 18:41:17 +00:00
break;
case 0:
if (server)
strlcpy(s, "Windows Server 2008", len);
else
strlcpy(s, "Windows Vista", len);
2015-04-18 18:41:17 +00:00
break;
default:
break;
}
break;
case 5:
switch (vi.dwMinorVersion)
2015-04-18 18:41:17 +00:00
{
case 2:
if (server)
if (serverR2)
strlcpy(s, "Windows Server 2003 R2", len);
else
strlcpy(s, "Windows Server 2003", len);
else
{
/* Yes, XP Pro x64 is a higher version number than XP x86 */
if (string_is_equal(arch, "x64"))
strlcpy(s, "Windows XP", len);
}
2015-04-18 18:41:17 +00:00
break;
case 1:
2015-06-02 16:28:51 +00:00
strlcpy(s, "Windows XP", len);
2015-04-18 18:41:17 +00:00
break;
case 0:
2015-06-02 16:28:51 +00:00
strlcpy(s, "Windows 2000", len);
2015-04-18 18:41:17 +00:00
break;
}
break;
case 4:
switch (vi.dwMinorVersion)
2015-04-18 18:41:17 +00:00
{
case 0:
if (vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
strlcpy(s, "Windows 95", len);
else if (vi.dwPlatformId == VER_PLATFORM_WIN32_NT)
strlcpy(s, "Windows NT 4.0", len);
else
strlcpy(s, "Unknown", len);
2015-04-18 18:41:17 +00:00
break;
case 90:
2015-06-02 16:28:51 +00:00
strlcpy(s, "Windows ME", len);
2015-04-18 18:41:17 +00:00
break;
case 10:
2015-06-02 16:28:51 +00:00
strlcpy(s, "Windows 98", len);
2015-04-18 18:41:17 +00:00
break;
}
break;
default:
snprintf(s, len, "Windows %i.%i", *major, *minor);
2015-04-18 18:41:17 +00:00
break;
}
if (!string_is_empty(arch))
{
strlcat(s, " ", len);
strlcat(s, arch, len);
}
strlcat(s, " Build ", len);
strlcat(s, buildStr, len);
if (!string_is_empty(vi.szCSDVersion))
{
strlcat(s, " ", len);
strlcat(s, vi.szCSDVersion, len);
}
}
2015-04-08 00:11:23 +00:00
static void frontend_win32_init(void *data)
{
typedef BOOL (WINAPI *isProcessDPIAwareProc)();
typedef BOOL (WINAPI *setProcessDPIAwareProc)();
#ifdef HAVE_DYNAMIC
HMODULE handle =
GetModuleHandle("User32.dll");
isProcessDPIAwareProc isDPIAwareProc =
(isProcessDPIAwareProc)dylib_proc(handle, "IsProcessDPIAware");
setProcessDPIAwareProc setDPIAwareProc =
(setProcessDPIAwareProc)dylib_proc(handle, "SetProcessDPIAware");
#else
isProcessDPIAwareProc isDPIAwareProc = IsProcessDPIAware;
setProcessDPIAwareProc setDPIAwareProc = SetProcessDPIAware;
#endif
if (isDPIAwareProc)
if (!isDPIAwareProc())
if (setDPIAwareProc)
setDPIAwareProc();
}
2015-04-18 15:16:55 +00:00
enum frontend_powerstate frontend_win32_get_powerstate(int *seconds, int *percent)
{
2016-01-13 06:05:57 +00:00
SYSTEM_POWER_STATUS status;
2016-12-03 04:36:23 +00:00
enum frontend_powerstate ret = FRONTEND_POWERSTATE_NONE;
2015-04-18 15:16:55 +00:00
if (!GetSystemPowerStatus(&status))
return ret;
if (status.BatteryFlag == 0xFF)
ret = FRONTEND_POWERSTATE_NONE;
if (status.BatteryFlag & (1 << 7))
ret = FRONTEND_POWERSTATE_NO_SOURCE;
else if (status.BatteryFlag & (1 << 3))
ret = FRONTEND_POWERSTATE_CHARGING;
else if (status.ACLineStatus == 1)
ret = FRONTEND_POWERSTATE_CHARGED;
else
ret = FRONTEND_POWERSTATE_ON_POWER_SOURCE;
*percent = (int)status.BatteryLifePercent;
*seconds = (int)status.BatteryLifeTime;
2016-12-21 14:34:57 +00:00
#ifdef _WIN32
if (*percent == 255)
*percent = 0;
#endif
2015-04-18 15:16:55 +00:00
return ret;
}
enum frontend_architecture frontend_win32_get_architecture(void)
{
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500
/* Windows 2000 and later */
2018-04-09 15:35:27 +00:00
SYSTEM_INFO si = {{0}};
GetSystemInfo(&si);
switch (si.wProcessorArchitecture)
{
case PROCESSOR_ARCHITECTURE_AMD64:
return FRONTEND_ARCH_X86_64;
break;
case PROCESSOR_ARCHITECTURE_INTEL:
return FRONTEND_ARCH_X86;
break;
case PROCESSOR_ARCHITECTURE_ARM:
return FRONTEND_ARCH_ARM;
break;
default:
break;
}
#endif
return FRONTEND_ARCH_NONE;
}
static int frontend_win32_parse_drive_list(void *data, bool load_content)
2015-06-15 20:45:02 +00:00
{
2015-12-06 17:12:40 +00:00
#ifdef HAVE_MENU
2016-06-03 02:32:18 +00:00
size_t i = 0;
unsigned drives = GetLogicalDrives();
char drive[] = " :\\";
2015-06-15 20:45:02 +00:00
file_list_t *list = (file_list_t*)data;
enum msg_hash_enums enum_idx = load_content ?
MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR :
MSG_UNKNOWN;
2015-06-15 20:45:02 +00:00
for (i = 0; i < 32; i++)
{
drive[0] = 'A' + i;
if (drives & (1 << i))
menu_entries_append_enum(list,
2016-12-13 00:37:37 +00:00
drive,
msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
enum_idx,
2017-05-26 14:17:14 +00:00
FILE_TYPE_DIRECTORY, 0, 0);
2015-06-15 20:45:02 +00:00
}
2015-12-06 17:12:40 +00:00
#endif
2015-06-15 20:45:02 +00:00
return 0;
}
2015-09-29 01:19:48 +00:00
static void frontend_win32_environment_get(int *argc, char *argv[],
void *args, void *params_data)
{
gfx_set_dwm();
2016-04-28 13:13:52 +00:00
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_ASSETS],
":\\assets", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
2017-05-23 18:39:56 +00:00
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_AUDIO_FILTER],
":\\filters\\audio", sizeof(g_defaults.dirs[DEFAULT_DIR_AUDIO_FILTER]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_VIDEO_FILTER],
":\\filters\\video", sizeof(g_defaults.dirs[DEFAULT_DIR_VIDEO_FILTER]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_CHEATS],
":\\cheats", sizeof(g_defaults.dirs[DEFAULT_DIR_CHEATS]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_DATABASE],
":\\database\\rdb", sizeof(g_defaults.dirs[DEFAULT_DIR_DATABASE]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_CURSOR],
":\\database\\cursors", sizeof(g_defaults.dirs[DEFAULT_DIR_CURSOR]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_PLAYLIST],
":\\playlists", sizeof(g_defaults.dirs[DEFAULT_DIR_ASSETS]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_RECORD_CONFIG],
2017-08-05 19:39:17 +00:00
":\\config\\record", sizeof(g_defaults.dirs[DEFAULT_DIR_RECORD_CONFIG]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_RECORD_OUTPUT],
2017-08-05 19:39:17 +00:00
":\\recordings", sizeof(g_defaults.dirs[DEFAULT_DIR_RECORD_OUTPUT]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG],
":\\config", sizeof(g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_REMAP],
":\\config\\remaps", sizeof(g_defaults.dirs[DEFAULT_DIR_REMAP]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_WALLPAPERS],
":\\assets\\wallpapers", sizeof(g_defaults.dirs[DEFAULT_DIR_WALLPAPERS]));
2017-05-23 18:39:56 +00:00
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_THUMBNAILS],
":\\thumbnails", sizeof(g_defaults.dirs[DEFAULT_DIR_THUMBNAILS]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_OVERLAY],
":\\overlays", sizeof(g_defaults.dirs[DEFAULT_DIR_OVERLAY]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_CORE],
":\\cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_CORE_INFO],
":\\info", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_INFO]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG],
":\\autoconfig", sizeof(g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_SHADER],
":\\shaders", sizeof(g_defaults.dirs[DEFAULT_DIR_SHADER]));
2017-05-23 19:18:20 +00:00
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_CORE_ASSETS],
":\\downloads", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE_ASSETS]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_SCREENSHOT],
":\\screenshots", sizeof(g_defaults.dirs[DEFAULT_DIR_SCREENSHOT]));
2017-08-05 19:39:17 +00:00
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_SRAM],
":\\saves", sizeof(g_defaults.dirs[DEFAULT_DIR_SRAM]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_SAVESTATE],
":\\states", sizeof(g_defaults.dirs[DEFAULT_DIR_SAVESTATE]));
fill_pathname_expand_special(g_defaults.dirs[DEFAULT_DIR_SYSTEM],
":\\system", sizeof(g_defaults.dirs[DEFAULT_DIR_SYSTEM]));
2016-04-30 14:11:28 +00:00
#ifdef HAVE_MENU
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
snprintf(g_defaults.settings.menu,
sizeof(g_defaults.settings.menu), "xmb");
#endif
2016-04-30 14:11:28 +00:00
#endif
}
static uint64_t frontend_win32_get_mem_total(void)
{
/* OSes below 2000 don't have the Ex version,
* and non-Ex cannot work with >4GB RAM */
#if _WIN32_WINNT >= 0x0500
MEMORYSTATUSEX mem_info;
mem_info.dwLength = sizeof(MEMORYSTATUSEX);
GlobalMemoryStatusEx(&mem_info);
return mem_info.ullTotalPhys;
2017-01-18 07:02:32 +00:00
#else
MEMORYSTATUS mem_info;
mem_info.dwLength = sizeof(MEMORYSTATUS);
GlobalMemoryStatus(&mem_info);
return mem_info.dwTotalPhys;
#endif
}
2016-06-12 18:50:03 +00:00
static uint64_t frontend_win32_get_mem_used(void)
{
/* OSes below 2000 don't have the Ex version,
* and non-Ex cannot work with >4GB RAM */
#if _WIN32_WINNT >= 0x0500
MEMORYSTATUSEX mem_info;
mem_info.dwLength = sizeof(MEMORYSTATUSEX);
GlobalMemoryStatusEx(&mem_info);
2016-06-12 19:51:08 +00:00
return ((frontend_win32_get_mem_total() - mem_info.ullAvailPhys));
2017-01-18 07:02:32 +00:00
#else
MEMORYSTATUS mem_info;
mem_info.dwLength = sizeof(MEMORYSTATUS);
GlobalMemoryStatus(&mem_info);
return ((frontend_win32_get_mem_total() - mem_info.dwAvailPhys));
#endif
2015-09-29 01:19:48 +00:00
}
static void frontend_win32_attach_console(void)
{
#ifdef _WIN32
2017-01-14 09:06:56 +00:00
#ifdef _WIN32_WINNT_WINXP
/* msys will start the process with FILE_TYPE_PIPE connected.
* cmd will start the process with FILE_TYPE_UNKNOWN connected
* (since this is subsystem windows application
* ... UNLESS stdout/stderr were redirected (then FILE_TYPE_DISK
* will be connected most likely)
* explorer will start the process with NOTHING connected.
*
* Now, let's not reconnect anything that's already connected.
* If any are disconnected, open a console, and connect to them.
* In case we're launched from msys or cmd, try attaching to the
* parent process console first.
*
* Take care to leave a record of what we did, so we can
* undo it precisely.
*/
bool need_stdout = (GetFileType(GetStdHandle(STD_OUTPUT_HANDLE))
== FILE_TYPE_UNKNOWN);
bool need_stderr = (GetFileType(GetStdHandle(STD_ERROR_HANDLE))
== FILE_TYPE_UNKNOWN);
if(need_stdout || need_stderr)
{
if(!AttachConsole( ATTACH_PARENT_PROCESS))
AllocConsole();
if(need_stdout) freopen( "CONOUT$", "w", stdout );
if(need_stderr) freopen( "CONOUT$", "w", stderr );
console_needs_free = true;
}
#endif
#endif
}
static void frontend_win32_detach_console(void)
{
#if defined(_WIN32) && !defined(_XBOX)
2017-01-14 09:06:56 +00:00
#ifdef _WIN32_WINNT_WINXP
if(console_needs_free)
{
/* we don't reconnect stdout/stderr to anything here,
* because by definition, they weren't connected to
* anything in the first place. */
FreeConsole();
console_needs_free = false;
}
#endif
#endif
}
frontend_ctx_driver_t frontend_ctx_win32 = {
2015-09-30 02:44:38 +00:00
frontend_win32_environment_get,
2015-04-18 15:16:55 +00:00
frontend_win32_init,
NULL, /* deinit */
NULL, /* exitspawn */
NULL, /* process_args */
NULL, /* exec */
NULL, /* set_fork */
NULL, /* shutdown */
NULL, /* get_name */
2015-04-18 15:16:55 +00:00
frontend_win32_get_os,
NULL, /* get_rating */
NULL, /* load_content */
frontend_win32_get_architecture,
2015-04-18 15:16:55 +00:00
frontend_win32_get_powerstate,
2015-06-15 20:45:02 +00:00
frontend_win32_parse_drive_list,
frontend_win32_get_mem_total,
2016-06-12 18:50:03 +00:00
frontend_win32_get_mem_used,
2016-07-08 00:10:40 +00:00
NULL, /* install_signal_handler */
2016-07-08 00:20:42 +00:00
NULL, /* get_sighandler_state */
2016-07-08 10:48:01 +00:00
NULL, /* set_sighandler_state */
2016-07-08 00:24:56 +00:00
NULL, /* destroy_sighandler_state */
frontend_win32_attach_console, /* attach_console */
frontend_win32_detach_console, /* detach_console */
NULL, /* watch_path_for_changes */
NULL, /* check_for_path_changes */
NULL, /* set_sustained_performance_mode */
2016-06-12 18:50:03 +00:00
"win32"
2015-04-07 19:51:57 +00:00
};