1
0

migration

This commit is contained in:
2025-04-29 22:08:00 +03:00
commit ad28507008
232 changed files with 12299 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#include <stdio.h>
#include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
fprintf(stderr,
"DLL loaded into process. hinstDLL = %p, lpvReserved = %p\n",
hInstDLL, lpvReserved);
break;
case DLL_THREAD_ATTACH:
fprintf(stderr,
"New thread created in the process using the DLL. "
"hinstDLL = %p, lpvReserved = %p\n",
hInstDLL, lpvReserved);
break;
case DLL_THREAD_DETACH:
fprintf(stderr,
"Thread using the DLL is terminating. hinstDLL = %p, "
"lpvReserved = %p\n",
hInstDLL, lpvReserved);
break;
case DLL_PROCESS_DETACH:
fprintf(stderr,
"DLL unloaded from process. hinstDLL = %p, lpvReserved = "
"%p\n",
hInstDLL, lpvReserved);
break;
}
return TRUE;
}