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.

36 lines
705 B

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. // stdafx.cpp : source file that includes just the standard includes
  3. // stdafx.pch will be the pre-compiled header
  4. // stdafx.obj will contain the pre-compiled type information
  5. #include <precomp.h>
  6. #ifdef _ATL_STATIC_REGISTRY
  7. #include <statreg.h>
  8. #include <statreg.cpp>
  9. #endif
  10. #include <atlimpl.cpp>
  11. LONG CExeModule::Unlock()
  12. {
  13. LONG l = CComModule::Unlock();
  14. #ifndef SNAPIN
  15. if (l == 0)
  16. {
  17. #if _WIN32_WINNT >= 0x0400
  18. if (CoSuspendClassObjects() == S_OK)
  19. PostThreadMessage(dwThreadID, WM_QUIT, 0, 0);
  20. #else
  21. PostThreadMessage(dwThreadID, WM_QUIT, 0, 0);
  22. #endif
  23. }
  24. #endif
  25. return l;
  26. }
  27. CExeModule _Module;