dllsetup.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //------------------------------------------------------------------------------
  2. // File: DllSetup.h
  3. //
  4. // Desc: DirectShow base classes.
  5. //
  6. // Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
  7. //------------------------------------------------------------------------------
  8. // To be self registering, OLE servers must
  9. // export functions named DllRegisterServer
  10. // and DllUnregisterServer. To allow use of
  11. // custom and default implementations the
  12. // defaults are named AMovieDllRegisterServer
  13. // and AMovieDllUnregisterServer.
  14. //
  15. // To the use the default implementation you
  16. // must provide stub functions.
  17. //
  18. // i.e. STDAPI DllRegisterServer()
  19. // {
  20. // return AMovieDllRegisterServer();
  21. // }
  22. //
  23. // STDAPI DllUnregisterServer()
  24. // {
  25. // return AMovieDllUnregisterServer();
  26. // }
  27. //
  28. //
  29. // AMovieDllRegisterServer calls IAMovieSetup.Register(), and
  30. // AMovieDllUnregisterServer calls IAMovieSetup.Unregister().
  31. STDAPI AMovieDllRegisterServer2( BOOL );
  32. STDAPI AMovieDllRegisterServer();
  33. STDAPI AMovieDllUnregisterServer();
  34. // helper functions
  35. STDAPI EliminateSubKey( HKEY, LPCTSTR );
  36. STDAPI
  37. AMovieSetupRegisterFilter2( const AMOVIESETUP_FILTER * const psetupdata
  38. , IFilterMapper2 * pIFM2
  39. , BOOL bRegister );