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.

45 lines
599 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name :
  4. cofact.cxx
  5. Abstract:
  6. class factory
  7. Author:
  8. Johnson Apacible (JohnsonA) 02-April-1997
  9. --*/
  10. #include "precomp.hxx"
  11. CComModule _Module;
  12. STDAPI
  13. DllGetClassObject(
  14. REFCLSID rclsid,
  15. REFIID riid,
  16. void** ppObject)
  17. {
  18. HRESULT hr;
  19. hr = _Module.GetClassObject(rclsid, riid, ppObject);
  20. return hr;
  21. }
  22. STDAPI
  23. DllCanUnloadNow(
  24. VOID
  25. )
  26. {
  27. return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
  28. } // DllCanUnloadNow