From 5bf3fd51f1dcdd275d38f35d7aebe7bd063eb3db Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Oct 2023 12:37:04 +0300 Subject: YAMN: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fixes #3742 (YAMN: добавить опцию "игнорировать настройки всплывающих окон при ручной проверке"); - all manual calls of CreateThread() removed on behalf of mir_forkthread; - code cleaning --- protocols/YAMN/src/stdafx.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'protocols/YAMN/src/stdafx.h') diff --git a/protocols/YAMN/src/stdafx.h b/protocols/YAMN/src/stdafx.h index cdeea26edc..aa88d18df9 100644 --- a/protocols/YAMN/src/stdafx.h +++ b/protocols/YAMN/src/stdafx.h @@ -26,16 +26,22 @@ #include #include #include -#include #include -#include "main.h" #include "mails/decode.h" -#include "browser/browser.h" -#include "resource.h" +#include "mails/mails.h" + +#include "account.h" +#include "protoplugin.h" + +#include "main.h" #include "debug.h" + +#include "resource.h" #include "version.h" +#include "browser/browser.h" + #include "proto/netlib.h" #include "proto/pop3/pop3.h" #include "proto/pop3/pop3comm.h" @@ -44,12 +50,16 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + CMOption bForceCheck; + __forceinline bool CheckFlags() { + return bForceCheck ? YAMN_FORCECHECK : YAMN_NORMALCHECK; + } + int Load() override; int Unload() override; }; // From services.cpp -void AccountMailCheck(CAccount *ActualAccount); void CreateServiceFunctions(void); void HookEvents(void); @@ -100,7 +110,7 @@ uint32_t WriteStringToFile(HANDLE File, char *Source); uint32_t WriteStringToFileW(HANDLE File, wchar_t *Source); DWORD WriteMessagesToFile(HANDLE File, CAccount *Which); -DWORD WINAPI WritePOP3Accounts(); +DWORD MIR_CDECL WritePOP3Accounts(); void __cdecl DeleteAccountInBackground(void *Which); int StopAccounts(YAMN_PROTOPLUGIN *Plugin); -- cgit v1.2.3