Source code of Windows XP (NT5)
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.

33 lines
766 B

  1. #include <stdio.h>
  2. #include <windows.h>
  3. BOOL WINAPI _CRT_INIT (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
  4. #ifdef HAS_LIBMAIN
  5. BOOL __cdecl LibMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
  6. #else
  7. #define LibMain(h, d, l) TRUE
  8. #endif
  9. BOOL __stdcall DllEntryPoint (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
  10. {
  11. BOOL fRc;
  12. // char msg[80];
  13. switch(dwReason)
  14. {
  15. case DLL_PROCESS_ATTACH:
  16. // DebugBreak();
  17. break;
  18. }
  19. if (fRc = _CRT_INIT(hDll, dwReason, lpReserved))
  20. fRc = LibMain(hDll, dwReason, lpReserved);
  21. switch(dwReason)
  22. {
  23. case DLL_PROCESS_ATTACH:
  24. // sprintf(msg, "Compob32 returning %d on attach\r\n", fRc);
  25. // OutputDebugStringA(msg);
  26. break;
  27. }
  28. return fRc;
  29. }