HWND FindWindowU8(const char *class_name, const char *window_name) { Wstr class_name_w(class_name); Wstr window_name_w(window_name); return ::FindWindowW(class_name ? class_name_w.s() : NULL, window_name ? window_name_w.s() : NULL); }
HWND CreateWindowU8(const char *class_name, const char *window_name, DWORD style, int x, int y, int width, int height, HWND hParent, HMENU hMenu, HINSTANCE hInst, void *param) { Wstr class_name_w(class_name), window_name_w(window_name); return ::CreateWindowW(class_name_w, window_name_w, style, x, y, width, height, hParent, hMenu, hInst, param); }
HWND FindWindowU8(const char *class_name, const char *window_name) { Wstr class_name_w(class_name), window_name_w(window_name); return ::FindWindowW(class_name_w, window_name_w); }