mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-21 07:57:50 +08:00
ed257e39d0
Signed-off-by: fufesou <shuanglongchen@yeah.net>
27 lines
474 B
C++
27 lines
474 B
C++
// dllmain.cpp : Defines the entry point for the DLL application.
|
|
#include "pch.h"
|
|
|
|
BOOL APIENTRY DllMain(
|
|
__in HMODULE hModule,
|
|
__in DWORD ulReasonForCall,
|
|
__in LPVOID
|
|
)
|
|
{
|
|
switch (ulReasonForCall)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
WcaGlobalInitialize(hModule);
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
WcaGlobalFinalize();
|
|
break;
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|