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.

37 lines
553 B

  1. /*
  2. * DllGCO.cxx
  3. * - DllGetClassObject implementation for inproc DLL
  4. */
  5. #include "server.hxx"
  6. #include "factory.hxx"
  7. HANDLE hStopServiceEvent;
  8. BOOL fStartedAsService = FALSE;
  9. long ObjectCount = 0;
  10. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID FAR* ppv)
  11. {
  12. HRESULT hr = E_NOINTERFACE;
  13. *ppv = NULL;
  14. MyFactory * pClass = new FactoryInproc();
  15. hr = pClass->QueryInterface( riid, ppv );
  16. return hr;
  17. }
  18. STDAPI DllCanUnloadNow(void)
  19. {
  20. return S_FALSE;
  21. }
  22. void ShutDown()
  23. {
  24. }