Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
696 B

  1. #include "precomp.h"
  2. #pragma hdrstop
  3. HMODULE MyModuleHandle;
  4. //
  5. // Called by CRT when _DllMainCRTStartup is the DLL entry point
  6. //
  7. BOOL
  8. WINAPI
  9. DllMain(
  10. IN HANDLE DllHandle,
  11. IN DWORD Reason,
  12. IN LPVOID Reserved
  13. )
  14. {
  15. BOOL b;
  16. UNREFERENCED_PARAMETER(Reserved);
  17. b = TRUE;
  18. switch(Reason) {
  19. case DLL_PROCESS_ATTACH:
  20. InitCommonControls();
  21. MyModuleHandle = DllHandle;
  22. //
  23. // Fall through to process first thread
  24. //
  25. case DLL_THREAD_ATTACH:
  26. break;
  27. case DLL_PROCESS_DETACH:
  28. break;
  29. case DLL_THREAD_DETACH:
  30. break;
  31. }
  32. return(b);
  33. }