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.

71 lines
1009 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. MODULE NAME
  4. init.c
  5. ABSTRACT
  6. Initialization for the Autodial helper DLL.
  7. AUTHOR
  8. Anthony Discolo (adiscolo) 22-Apr-1996
  9. REVISION HISTORY
  10. --*/
  11. #define UNICODE
  12. #define _UNICODE
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <stdlib.h>
  17. #include <windows.h>
  18. #include <stdio.h>
  19. #define DEBUGGLOBALS
  20. #include <debug.h>
  21. BOOL
  22. WINAPI
  23. InitAcsHelperDLL(
  24. HINSTANCE hinstDLL,
  25. DWORD fdwReason,
  26. LPVOID lpvReserved
  27. )
  28. /*++
  29. DESCRIPTION
  30. Initialize the DLL. All we do right now is to initialize
  31. the debug tracing library.
  32. ARGUMENTS
  33. hinstDLL:
  34. fdwReason:
  35. lpvReserved:
  36. RETURN VALUE
  37. Always TRUE.
  38. --*/
  39. {
  40. switch (fdwReason) {
  41. case DLL_PROCESS_ATTACH:
  42. DisableThreadLibraryCalls(hinstDLL);
  43. break;
  44. case DLL_PROCESS_DETACH:
  45. break;
  46. default:
  47. break;
  48. }
  49. return TRUE;
  50. }