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.

54 lines
1.3 KiB

  1. /***
  2. *IOS_DLL.c - Old Iostreams CRTL DLL initialization and termination routine (Win32)
  3. *
  4. * Copyright (c) 1996-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This module contains initialization entry point for the "old" Iostreams
  8. * C Run-Time Library DLL.
  9. *
  10. *Revision History:
  11. * 05-13-96 SKS Initial version.
  12. *
  13. *******************************************************************************/
  14. #ifdef CRTDLL
  15. #include <windows.h>
  16. /***
  17. *BOOL DllMain(hDllHandle, dwReason, lpreserved) - C DLL initialization.
  18. *
  19. *Purpose:
  20. * This routine does the C runtime initialization. It disables Thread
  21. * Attach/Detach notifications for this DLL since they are not used.
  22. *
  23. *Entry:
  24. *
  25. *Exit:
  26. *
  27. *******************************************************************************/
  28. BOOL WINAPI DllMain(
  29. HANDLE hDllHandle,
  30. DWORD dwReason,
  31. LPVOID lpreserved
  32. )
  33. {
  34. if ( dwReason == DLL_PROCESS_ATTACH )
  35. DisableThreadLibraryCalls(hDllHandle);
  36. return TRUE ;
  37. }
  38. /*
  39. * The following variable is exported just so that the forwarder DLL can import it.
  40. * The forwarder DLL needs to have at least one import from this DLL to ensure that
  41. * this DLL will be fully initialized.
  42. */
  43. __declspec(dllexport) int __dummy_export = 0x420;
  44. #endif /* CRTDLL */