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.

42 lines
882 B

  1. // DUser.cpp : Defines the entry point for the DLL application.
  2. //
  3. #include "stdafx.h"
  4. #include "BridgeCP.h"
  5. #include "Bridge.h"
  6. /***************************************************************************\
  7. *
  8. * DllMain
  9. *
  10. * DllMain() is called after the CRT has fully ininitialized.
  11. *
  12. \***************************************************************************/
  13. extern "C"
  14. BOOL WINAPI
  15. DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
  16. {
  17. UNREFERENCED_PARAMETER(hModule);
  18. UNREFERENCED_PARAMETER(lpReserved);
  19. switch (dwReason)
  20. {
  21. case DLL_PROCESS_ATTACH:
  22. if (!InitBridges()) {
  23. return FALSE;
  24. }
  25. break;
  26. case DLL_PROCESS_DETACH:
  27. break;
  28. case DLL_THREAD_ATTACH:
  29. break;
  30. case DLL_THREAD_DETACH:
  31. break;
  32. }
  33. return TRUE;
  34. }