summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/WhoUsesMyFiles/src
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/WhoUsesMyFiles/src')
-rw-r--r--plugins/WhoUsesMyFiles/src/list.cpp10
-rw-r--r--plugins/WhoUsesMyFiles/src/options.cpp4
-rw-r--r--plugins/WhoUsesMyFiles/src/stdafx.h22
-rw-r--r--plugins/WhoUsesMyFiles/src/wumf.cpp2
4 files changed, 19 insertions, 19 deletions
diff --git a/plugins/WhoUsesMyFiles/src/list.cpp b/plugins/WhoUsesMyFiles/src/list.cpp
index a597d99235..7b9251cc19 100644
--- a/plugins/WhoUsesMyFiles/src/list.cpp
+++ b/plugins/WhoUsesMyFiles/src/list.cpp
@@ -1,13 +1,13 @@
#include "stdafx.h"
-PWumf new_wumf( DWORD dwID,
+PWumf new_wumf( uint32_t dwID,
LPTSTR szUser,
LPTSTR szPath,
LPTSTR szComp,
LPTSTR szUNC,
- DWORD dwSess,
- DWORD dwPerm,
- DWORD dwAttr)
+ uint32_t dwSess,
+ uint32_t dwPerm,
+ uint32_t dwAttr)
{
PWumf w = (PWumf)mir_calloc(sizeof(Wumf));
if (!w)
@@ -96,7 +96,7 @@ PWumf cpy_list(PWumf *l)
return p;
}
-PWumf fnd_cell(PWumf *l, DWORD dwID)
+PWumf fnd_cell(PWumf *l, uint32_t dwID)
{
if (!l || !*l)return nullptr;
PWumf w = *l;
diff --git a/plugins/WhoUsesMyFiles/src/options.cpp b/plugins/WhoUsesMyFiles/src/options.cpp
index de674b67c4..f04e35f7f6 100644
--- a/plugins/WhoUsesMyFiles/src/options.cpp
+++ b/plugins/WhoUsesMyFiles/src/options.cpp
@@ -223,8 +223,8 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg,UINT msg,WPARAM wparam,LPARAM lpara
return TRUE;
case PSN_APPLY:
- g_plugin.setDword(COLOR_TEXT, (DWORD)WumfOptions.ColorText);
- g_plugin.setDword(COLOR_BACK, (DWORD)WumfOptions.ColorBack);
+ g_plugin.setDword(COLOR_TEXT, (uint32_t)WumfOptions.ColorText);
+ g_plugin.setDword(COLOR_BACK, (uint32_t)WumfOptions.ColorBack);
g_plugin.setByte(COLOR_DEF, (uint8_t)WumfOptions.UseDefColor);
g_plugin.setByte(COLOR_WIN, (uint8_t)WumfOptions.UseWinColor);
g_plugin.setByte(COLOR_SET, (uint8_t)WumfOptions.SelectColor );
diff --git a/plugins/WhoUsesMyFiles/src/stdafx.h b/plugins/WhoUsesMyFiles/src/stdafx.h
index 36db3d98f4..db434fd83b 100644
--- a/plugins/WhoUsesMyFiles/src/stdafx.h
+++ b/plugins/WhoUsesMyFiles/src/stdafx.h
@@ -70,16 +70,16 @@ struct WUMF_OPTIONS
struct Wumf
{
- DWORD dwID;
+ uint32_t dwID;
wchar_t szID[10], szPerm[10];
LPTSTR szUser;
LPTSTR szPath;
LPTSTR szComp;
LPTSTR szUNC;
- DWORD dwSess;
- DWORD dwLocks;
- DWORD dwAttr;
- DWORD dwPerm;
+ uint32_t dwSess;
+ uint32_t dwLocks;
+ uint32_t dwAttr;
+ uint32_t dwPerm;
BOOL mark;
Wumf *next;
};
@@ -87,19 +87,19 @@ struct Wumf
typedef Wumf *PWumf;
PWumf new_wumf(
- DWORD dwID,
+ uint32_t dwID,
LPTSTR szUser,
LPTSTR szPath,
LPTSTR szComp,
LPTSTR szUNC,
- DWORD szSess,
- DWORD dwPerm,
- DWORD dwAttr);
+ uint32_t szSess,
+ uint32_t dwPerm,
+ uint32_t dwAttr);
BOOL add_cell (PWumf* l, PWumf w);
BOOL del_cell (PWumf* l, PWumf w);
BOOL cpy_cell (PWumf* l, PWumf w);
-PWumf fnd_cell (PWumf* l, DWORD dwID);
+PWumf fnd_cell (PWumf* l, uint32_t dwID);
PWumf cpy_list (PWumf* l);
BOOL del_all (PWumf* l);
void mark_all (PWumf* l, BOOL mark);
@@ -129,7 +129,7 @@ void ShowWumfPopup(PWumf w);
void process_session(SESSION_INFO_1 s_info);
void process_file(SESSION_INFO_1 s_info, FILE_INFO_3 f_info);
-void printError(DWORD res);
+void printError(uint32_t res);
#define msg(X) MessageBox(NULL, X, L"WUMF", MB_OK|MB_ICONSTOP)
#define MS_WUMF_SWITCHPOPUP "WUMF/SwitchPopup"
diff --git a/plugins/WhoUsesMyFiles/src/wumf.cpp b/plugins/WhoUsesMyFiles/src/wumf.cpp
index 66a287eea8..c2d037e673 100644
--- a/plugins/WhoUsesMyFiles/src/wumf.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumf.cpp
@@ -206,7 +206,7 @@ void process_file(SESSION_INFO_1 s_info, FILE_INFO_3 f_info)
else w->mark = FALSE;
}
-void printError(DWORD res)
+void printError(uint32_t res)
{
LPVOID lpMsgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, nullptr, res, 0, (LPTSTR) &lpMsgBuf, 0, nullptr );