From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- plugins/KeyboardNotify/src/ignore.cpp | 20 ++++++++++---------- plugins/KeyboardNotify/src/main.cpp | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/KeyboardNotify/src') diff --git a/plugins/KeyboardNotify/src/ignore.cpp b/plugins/KeyboardNotify/src/ignore.cpp index 847c8288b4..825d7d9531 100644 --- a/plugins/KeyboardNotify/src/ignore.cpp +++ b/plugins/KeyboardNotify/src/ignore.cpp @@ -23,12 +23,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define IDI_FILLEDBLOB 212 #define IDI_EMPTYBLOB 213 -static const DWORD ignoreIdToPf1[IGNOREEVENT_MAX] = {PF1_IMRECV, 0xFFFFFFFF, PF1_FILERECV, 0xFFFFFFFF}; +static const uint32_t ignoreIdToPf1[IGNOREEVENT_MAX] = {PF1_IMRECV, 0xFFFFFFFF, PF1_FILERECV, 0xFFFFFFFF}; -static DWORD GetMask(MCONTACT hContact) +static uint32_t GetMask(MCONTACT hContact) { - DWORD mask = g_plugin.getDword(hContact, "Mask1", (DWORD)(-1)); - if(mask == (DWORD)(-1)) { + uint32_t mask = g_plugin.getDword(hContact, "Mask1", (uint32_t)(-1)); + if(mask == (uint32_t)(-1)) { if(hContact == NULL) mask=0; else { @@ -145,9 +145,9 @@ static void SetIconsForColumn(HWND hwndList, HANDLE hItem, HANDLE hItemAll, int } } -static void InitialiseItem(HWND hwndList, MCONTACT hContact, HANDLE hItem, DWORD protoCaps) +static void InitialiseItem(HWND hwndList, MCONTACT hContact, HANDLE hItem, uint32_t protoCaps) { - DWORD mask = GetMask(hContact); + uint32_t mask = GetMask(hContact); for (int i=0; i < IGNOREEVENT_MAX; i++) if(ignoreIdToPf1[i] == 0xFFFFFFFF || protoCaps & ignoreIdToPf1[i]) SendMessage(hwndList, CLM_SETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(i, mask&(1<iColumn == -1) @@ -321,7 +321,7 @@ INT_PTR CALLBACK DlgProcIgnoreOptions(HWND hwndDlg, UINT msg, WPARAM, LPARAM lPa BOOL IsIgnored(MCONTACT hContact, uint16_t eventType) { uint16_t ignoreID = 0; - DWORD mask = GetMask(hContact); + uint32_t mask = GetMask(hContact); switch(eventType) { case EVENTTYPE_MESSAGE: diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp index ddac9e72a9..5c454d239a 100644 --- a/plugins/KeyboardNotify/src/main.cpp +++ b/plugins/KeyboardNotify/src/main.cpp @@ -28,7 +28,7 @@ CMPlugin g_plugin; -DWORD IDThread = 0; +uint32_t IDThread = 0; HANDLE hThread = nullptr; HANDLE hFlashEvent; HANDLE hExitEvent; @@ -41,7 +41,7 @@ UINT hReminderTimer = 0; HHOOK hMouseHook = nullptr; HHOOK hKeyBoardHook = nullptr; uint8_t bEmulateKeypresses = 0; -DWORD dwLastInput = 0; +uint32_t dwLastInput = 0; POINT lastGlobalMousePos = { 0, 0 }; uint8_t bFlashOnMsg; @@ -262,7 +262,7 @@ BOOL checkUnopenEvents() static void __cdecl FlashThreadFunction(void*) { BOOL bEvent = FALSE; - DWORD dwEventStarted = 0, dwFlashStarted = 0; + uint32_t dwEventStarted = 0, dwFlashStarted = 0; uint8_t data, unchangedLeds; Thread_SetName("KeyboardNotify: FlashThreadFunction"); @@ -327,7 +327,7 @@ static void __cdecl FlashThreadFunction(void*) } } -BOOL checkMsgTimestamp(MCONTACT hContact, MEVENT hEventCurrent, DWORD timestampCurrent) +BOOL checkMsgTimestamp(MCONTACT hContact, MEVENT hEventCurrent, uint32_t timestampCurrent) { if (!bFlashIfMsgOlder) return TRUE; -- cgit v1.2.3