1 // license:BSD-3-Clause
2 // copyright-holders:Aaron Giles
3 //============================================================
4 //
5 //  winutf8.h - Win32 UTF-8 wrappers
6 //
7 //============================================================
8 
9 #ifndef MAME_OSD_WINDOWS_WINUTF8_H
10 #define MAME_OSD_WINDOWS_WINUTF8_H
11 
12 #pragma once
13 
14 #include "osdcore.h"
15 
16 #include <windows.h>
17 
18 // wrappers for kernel32.dll
19 void win_output_debug_string_utf8(const char *string);
20 
21 // wrappers for user32.dll
22 int win_message_box_utf8(HWND window, const char *text, const char *caption, UINT type);
23 BOOL win_set_window_text_utf8(HWND window, const char *text);
24 std::string win_get_window_text_utf8(HWND window);
25 HWND win_create_window_ex_utf8(
26 		DWORD exstyle,
27 		const char *classname,
28 		const char *windowname,
29 		DWORD style,
30 		int x, int y, int width, int height,
31 		HWND wndparent,
32 		HMENU menu,
33 		HINSTANCE instance,
34 		void *param);
35 
36 #endif // MAME_OSD_WINDOWS_WINUTF8_H
37