summaryrefslogtreecommitdiff
path: root/third_party/BaseClasses/dllsetup.h
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2012-04-18 02:38:42 +0000
committerLiong Sauw Ming <ming@teluu.com>2012-04-18 02:38:42 +0000
commitbe78f596a56580ae6984895355168376d49d9099 (patch)
tree7ebce483258005e403f973dac299c435675b53bf /third_party/BaseClasses/dllsetup.h
parent64f7c5f55ec54621141ba3676298510dcf0bdb70 (diff)
Fixed #1276: Add baseclasses sample in third_party directory required by dshow_dev
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4061 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/BaseClasses/dllsetup.h')
-rw-r--r--third_party/BaseClasses/dllsetup.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/third_party/BaseClasses/dllsetup.h b/third_party/BaseClasses/dllsetup.h
new file mode 100644
index 00000000..e363b8b6
--- /dev/null
+++ b/third_party/BaseClasses/dllsetup.h
@@ -0,0 +1,46 @@
+//------------------------------------------------------------------------------
+// File: DllSetup.h
+//
+// Desc: DirectShow base classes.
+//
+// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
+//------------------------------------------------------------------------------
+
+
+// To be self registering, OLE servers must
+// export functions named DllRegisterServer
+// and DllUnregisterServer. To allow use of
+// custom and default implementations the
+// defaults are named AMovieDllRegisterServer
+// and AMovieDllUnregisterServer.
+//
+// To the use the default implementation you
+// must provide stub functions.
+//
+// i.e. STDAPI DllRegisterServer()
+// {
+// return AMovieDllRegisterServer();
+// }
+//
+// STDAPI DllUnregisterServer()
+// {
+// return AMovieDllUnregisterServer();
+// }
+//
+//
+// AMovieDllRegisterServer calls IAMovieSetup.Register(), and
+// AMovieDllUnregisterServer calls IAMovieSetup.Unregister().
+
+STDAPI AMovieDllRegisterServer2( BOOL );
+STDAPI AMovieDllRegisterServer();
+STDAPI AMovieDllUnregisterServer();
+
+// helper functions
+STDAPI EliminateSubKey( HKEY, LPCTSTR );
+
+
+STDAPI
+AMovieSetupRegisterFilter2( const AMOVIESETUP_FILTER * const psetupdata
+ , IFilterMapper2 * pIFM2
+ , BOOL bRegister );
+