Format codes

This commit is contained in:
Changhua 2022-10-16 22:14:06 +08:00
parent f757c95e0d
commit 1299128bf1
10 changed files with 27 additions and 34 deletions

View File

@ -1,13 +1,9 @@
// dllmain.cpp : 定义 DLL 应用程序的入口点。 // dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "framework.h" #include "framework.h"
BOOL APIENTRY DllMain( HMODULE hModule, BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{ {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH: case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH: case DLL_THREAD_DETACH:
@ -16,4 +12,3 @@ BOOL APIENTRY DllMain( HMODULE hModule,
} }
return TRUE; return TRUE;
} }

View File

@ -5,8 +5,6 @@
#define LOGGER_MAX_SIZE 1024 * 1024 * 10 // 10M #define LOGGER_MAX_SIZE 1024 * 1024 * 10 // 10M
#define LOGGER_MAX_FILES 10 // 10 files #define LOGGER_MAX_FILES 10 // 10 files
void InitLogger() void InitLogger()
{ {
static std::shared_ptr<spdlog::logger> gLogger = nullptr; static std::shared_ptr<spdlog::logger> gLogger = nullptr;

View File

@ -3,8 +3,8 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "spy_types.h"
#include "send_msg.h" #include "send_msg.h"
#include "spy_types.h"
extern HANDLE g_hEvent; extern HANDLE g_hEvent;
extern WxCalls_t g_WxCalls; extern WxCalls_t g_WxCalls;