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.

38 lines
731 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1992, Microsoft Corporation.
  4. //
  5. // File: init.cxx
  6. //
  7. // Contents: This has the dll initialisation for the Dfs Setup DLL
  8. //
  9. // Functions:
  10. //
  11. // History: 19-Jan-96 Milans created
  12. //
  13. //-----------------------------------------------------------------------------
  14. #include <windows.h>
  15. HINSTANCE g_hInstance;
  16. extern "C" BOOL
  17. DllMain(
  18. HINSTANCE hDll,
  19. DWORD dwReason,
  20. LPVOID lpReserved)
  21. {
  22. switch(dwReason)
  23. {
  24. case DLL_PROCESS_ATTACH:
  25. g_hInstance = hDll;
  26. DisableThreadLibraryCalls(hDll);
  27. break;
  28. case DLL_PROCESS_DETACH:
  29. break;
  30. }
  31. return TRUE;
  32. }