From 77f0a61ec8f1488d6042b1370444bb2612604292 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 10 Jan 2023 21:24:21 +0100 Subject: Get rid of TCHAR magic We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity. --- win/wm_hooks/wm_hooks.cxx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'win/wm_hooks/wm_hooks.cxx') diff --git a/win/wm_hooks/wm_hooks.cxx b/win/wm_hooks/wm_hooks.cxx index be845d6a..c864171b 100644 --- a/win/wm_hooks/wm_hooks.cxx +++ b/win/wm_hooks/wm_hooks.cxx @@ -24,48 +24,46 @@ #include #endif -#include - #include #include #define SHARED __attribute__((section ("shared"), shared)) -UINT WM_HK_PingThread = RegisterWindowMessage(_T("RFB.WM_Hooks.PingThread")); +UINT WM_HK_PingThread = RegisterWindowMessage("RFB.WM_Hooks.PingThread"); -UINT WM_HK_WindowChanged = RegisterWindowMessage(_T("RFB.WM_Hooks.WindowChanged")); +UINT WM_HK_WindowChanged = RegisterWindowMessage("RFB.WM_Hooks.WindowChanged"); UINT WM_Hooks_WindowChanged() { return WM_HK_WindowChanged; } -UINT WM_HK_WindowClientAreaChanged = RegisterWindowMessage(_T("RFB.WM_Hooks.WindowClientAreaChanged")); +UINT WM_HK_WindowClientAreaChanged = RegisterWindowMessage("RFB.WM_Hooks.WindowClientAreaChanged"); UINT WM_Hooks_WindowClientAreaChanged() { return WM_HK_WindowClientAreaChanged; } -UINT WM_HK_WindowBorderChanged = RegisterWindowMessage(_T("RFB.WM_Hooks.WindowBorderChanged")); +UINT WM_HK_WindowBorderChanged = RegisterWindowMessage("RFB.WM_Hooks.WindowBorderChanged"); UINT WM_Hooks_WindowBorderChanged() { return WM_HK_WindowBorderChanged; } -UINT WM_HK_RectangleChanged = RegisterWindowMessage(_T("RFB.WM_Hooks.RectangleChanged")); +UINT WM_HK_RectangleChanged = RegisterWindowMessage("RFB.WM_Hooks.RectangleChanged"); UINT WM_Hooks_RectangleChanged() { return WM_HK_RectangleChanged; } -UINT WM_HK_CursorChanged = RegisterWindowMessage(_T("RFB.WM_Hooks.CursorChanged")); +UINT WM_HK_CursorChanged = RegisterWindowMessage("RFB.WM_Hooks.CursorChanged"); UINT WM_Hooks_CursorChanged() { return WM_HK_CursorChanged; } #ifdef _DEBUG -UINT WM_HK_Diagnostic = RegisterWindowMessage(_T("RFB.WM_Hooks.Diagnostic")); +UINT WM_HK_Diagnostic = RegisterWindowMessage("RFB.WM_Hooks.Diagnostic"); UINT WM_Hooks_Diagnostic() { return WM_HK_Diagnostic; } #endif -ATOM ATOM_Popup_Selection = GlobalAddAtom(_T("RFB.WM_Hooks.PopupSelectionAtom")); +ATOM ATOM_Popup_Selection = GlobalAddAtom("RFB.WM_Hooks.PopupSelectionAtom"); // // -=- DLL entry point -- cgit v1.2.3