dllmain.cpp 451 B

12345678910111213141516171819
  1. // dllmain.cpp : 定义 DLL 应用程序的入口点。
  2. #include "framework.h"
  3. BOOL APIENTRY DllMain( HMODULE hModule,
  4. DWORD ul_reason_for_call,
  5. LPVOID lpReserved
  6. )
  7. {
  8. switch (ul_reason_for_call)
  9. {
  10. case DLL_PROCESS_ATTACH:
  11. case DLL_THREAD_ATTACH:
  12. case DLL_THREAD_DETACH:
  13. case DLL_PROCESS_DETACH:
  14. break;
  15. }
  16. return TRUE;
  17. }