qedit: Skeleton implementation of qedit.dll.

oldstable
Lei Zhang 2008-02-11 18:07:45 -08:00 committed by Alexandre Julliard
parent a319263230
commit 6de8be71b3
9 changed files with 174 additions and 0 deletions

View File

@ -380,6 +380,7 @@ ALL_MAKEFILES = \
dlls/psapi/tests/Makefile \
dlls/pstorec/Makefile \
dlls/qcap/Makefile \
dlls/qedit/Makefile \
dlls/qmgr/Makefile \
dlls/qmgrprxy/Makefile \
dlls/quartz/Makefile \
@ -791,6 +792,7 @@ dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules
dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules
dlls/pstorec/Makefile: dlls/pstorec/Makefile.in dlls/Makedll.rules
dlls/qcap/Makefile: dlls/qcap/Makefile.in dlls/Makedll.rules
dlls/qedit/Makefile: dlls/qedit/Makefile.in dlls/Makedll.rules
dlls/qmgr/Makefile: dlls/qmgr/Makefile.in dlls/Makedll.rules
dlls/qmgrprxy/Makefile: dlls/qmgrprxy/Makefile.in dlls/Makedll.rules
dlls/quartz/Makefile: dlls/quartz/Makefile.in dlls/Makedll.rules

3
configure vendored
View File

@ -21611,6 +21611,8 @@ ac_config_files="$ac_config_files dlls/pstorec/Makefile"
ac_config_files="$ac_config_files dlls/qcap/Makefile"
ac_config_files="$ac_config_files dlls/qedit/Makefile"
ac_config_files="$ac_config_files dlls/qmgr/Makefile"
ac_config_files="$ac_config_files dlls/qmgrprxy/Makefile"
@ -22747,6 +22749,7 @@ do
"dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
"dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
"dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
"dlls/qedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qedit/Makefile" ;;
"dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;;
"dlls/qmgrprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgrprxy/Makefile" ;;
"dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;

View File

@ -1879,6 +1879,7 @@ AC_CONFIG_FILES([dlls/psapi/Makefile])
AC_CONFIG_FILES([dlls/psapi/tests/Makefile])
AC_CONFIG_FILES([dlls/pstorec/Makefile])
AC_CONFIG_FILES([dlls/qcap/Makefile])
AC_CONFIG_FILES([dlls/qedit/Makefile])
AC_CONFIG_FILES([dlls/qmgr/Makefile])
AC_CONFIG_FILES([dlls/qmgrprxy/Makefile])
AC_CONFIG_FILES([dlls/quartz/Makefile])

View File

@ -184,6 +184,7 @@ BASEDIRS = \
psapi \
pstorec \
qcap \
qedit \
qmgr \
qmgrprxy \
quartz \

View File

@ -0,0 +1,15 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = qedit.dll
IMPORTS = kernel32
EXTRALIBS =
C_SRCS = \
main.c \
regsvr.c
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend

65
dlls/qedit/main.c 100644
View File

@ -0,0 +1,65 @@
/* DirectShow Editing Services (qedit.dll)
*
* Copyright 2008 Google (Lei Zhang)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "qedit_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(qedit);
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL);
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
/***********************************************************************
* DllCanUnloadNow (QEDIT.@)
*/
HRESULT WINAPI DllCanUnloadNow(void)
{
return S_OK;
}
/*******************************************************************************
* DllGetClassObject [QEDIT.@]
* Retrieves class object from a DLL object
*
* PARAMS
* rclsid [I] CLSID for the class object
* riid [I] Reference to identifier of interface for class object
* ppv [O] Address of variable to receive interface pointer for riid
*
* RETURNS
* Success: S_OK
* Failure: CLASS_E_CLASSNOTAVAILABLE, E_OUTOFMEMORY, E_INVALIDARG,
* E_UNEXPECTED, E_NOINTERFACE
*/
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return E_NOINTERFACE;
}

View File

@ -0,0 +1,4 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()

View File

@ -0,0 +1,37 @@
/* DirectShow Editing Services (qedit.dll)
*
* Copyright 2008 Google (Lei Zhang)
*
* This file contains the (internal) driver registration functions,
* driver enumeration APIs and DirectDraw creation functions.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __QEDIT_PRIVATE_INCLUDED__
#define __QEDIT_PRIVATE_INCLUDED__
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "wtypes.h"
#include "wingdi.h"
#include "winuser.h"
#include "dshow.h"
#endif /* __QEDIT_PRIVATE_INCLUDED__ */

View File

@ -0,0 +1,46 @@
/*
* self-registerable dll functions for qedit.dll
*
* Copyright (C) 2008 Google (Lei Zhang)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "winerror.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(qedit);
/***********************************************************************
* DllRegisterServer (QEDIT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
TRACE("\n");
return S_OK;
}
/***********************************************************************
* DllUnregisterServer (QEDIT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
TRACE("\n");
return S_OK;
}