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.

61 lines
756 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dll.c
  5. Abstract:
  6. Routines that interface this dll to the system, such as
  7. the dll entry point.
  8. Author:
  9. Ted Miller (tedm) 4 December 1996
  10. Revision History:
  11. --*/
  12. #include "precomp.h"
  13. #pragma hdrstop
  14. BOOL
  15. WINAPI
  16. DllMain(
  17. HINSTANCE ModuleHandle,
  18. DWORD Reason,
  19. PVOID Reserved
  20. )
  21. /*++
  22. Routine Description:
  23. Dll entry point.
  24. Arguments:
  25. Return Value:
  26. --*/
  27. {
  28. switch(Reason) {
  29. case DLL_PROCESS_ATTACH:
  30. hInst = ModuleHandle;
  31. TlsIndex = TlsAlloc();
  32. break;
  33. case DLL_PROCESS_DETACH:
  34. TlsFree(TlsIndex);
  35. break;
  36. }
  37. return(TRUE);
  38. }