diff --git a/ui/drivers/win32/ui_win32_window.c b/ui/drivers/win32/ui_win32_window.c
index a8e73c3c33..b8357fd9ea 100644
--- a/ui/drivers/win32/ui_win32_window.c
+++ b/ui/drivers/win32/ui_win32_window.c
@@ -46,7 +46,13 @@
#include "../../../runloop.h"
#include "../../../tasks/tasks_internal.h"
-static void ui_window_win32_set_visible(void *data,
+void ui_window_win32_destroy(void *data)
+{
+ ui_window_win32_t *window = (ui_window_win32_t*)data;
+ DestroyWindow(hwnd);
+}
+
+void ui_window_win32_set_visible(void *data,
bool set_visible)
{
}
diff --git a/ui/drivers/win32/ui_win32_window.h b/ui/drivers/win32/ui_win32_window.h
new file mode 100644
index 0000000000..6b3e5a6838
--- /dev/null
+++ b/ui/drivers/win32/ui_win32_window.h
@@ -0,0 +1,47 @@
+/* RetroArch - A frontend for libretro.
+ * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
+ * Copyright (C) 2011-2016 - Daniel De Matteis
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License along with RetroArch.
+ * If not, see .
+ */
+
+#ifndef _WIN32_WINDOW_UI
+#define _WIN32_WINDOW_UI
+
+#include
+#include
+
+#include
+#include
+
+#ifndef _XBOX
+#define WIN32_LEAN_AND_MEAN
+#include
+#endif
+
+#icnlude "../../ui_companion_driver.h"
+
+RETRO_BEGIN_DECLS
+
+typedef struct ui_window_win32
+{
+ HWND hwnd;
+} ui_window_win32_t;
+
+void ui_window_win32_set_visible(void *data,
+ bool set_visible);
+
+void ui_window_win32_destroy(void *data);
+
+RETRO_END_DECLS
+
+#endif