Commit 33423f37 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

sti: Use IRegistrar instead of regsvr.c.

parent 7769b058
MODULE = sti.dll MODULE = sti.dll
IMPORTLIB = sti IMPORTLIB = sti
IMPORTS = uuid ole32 oleaut32 rpcrt4 advapi32 IMPORTS = uuid ole32 oleaut32 rpcrt4 advapi32
EXTRADEFS = -DENTRY_PREFIX=STI_ -DPROXY_DELEGATION -DREGISTER_PROXY_DLL EXTRADEFS = -DENTRY_PREFIX=STI_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL
C_SRCS = \ C_SRCS = \
regsvr.c \
sti.c \ sti.c \
sti_main.c sti_main.c
RC_SRCS = rsrc.rc
IDL_P_SRCS = \ IDL_P_SRCS = \
sti_wia.idl sti_wia.idl
......
/*
* Copyright 2010 Damjan Jovanovic
*
* 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
*/
/* @makedep: sti.rgs */
1 WINE_REGISTRY sti.rgs
HKCR
{
NoRemove CLSID
{
ForceRemove '{B323F8E0-2E68-11D0-90EA-00AA0060F86C}' = s 'StillImage'
{
InprocServer32 = s '%MODULE%'
{
val ThreadingModel = s 'Both'
}
}
}
}
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include "winreg.h" #include "winreg.h"
#include "winerror.h" #include "winerror.h"
#include "objbase.h" #include "objbase.h"
#include "initguid.h"
#include "wia_lh.h"
#include "sti.h" #include "sti.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -34,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(sti); ...@@ -34,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(sti);
extern HRESULT WINAPI STI_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN; extern HRESULT WINAPI STI_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN;
extern BOOL WINAPI STI_DllMain(HINSTANCE, DWORD, LPVOID) DECLSPEC_HIDDEN; extern BOOL WINAPI STI_DllMain(HINSTANCE, DWORD, LPVOID) DECLSPEC_HIDDEN;
extern HRESULT WINAPI STI_DllRegisterServer(void) DECLSPEC_HIDDEN;
extern HRESULT WINAPI STI_DllUnregisterServer(void) DECLSPEC_HIDDEN;
typedef HRESULT (*fnCreateInstance)(REFIID riid, IUnknown *pUnkOuter, LPVOID *ppObj); typedef HRESULT (*fnCreateInstance)(REFIID riid, IUnknown *pUnkOuter, LPVOID *ppObj);
...@@ -164,3 +168,19 @@ HRESULT WINAPI DllCanUnloadNow( void ) ...@@ -164,3 +168,19 @@ HRESULT WINAPI DllCanUnloadNow( void )
{ {
return S_FALSE; return S_FALSE;
} }
/***********************************************************************
* DllRegisterServer (STI.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return STI_DllRegisterServer();
}
/***********************************************************************
* DllUnRegisterServer (STI.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return STI_DllUnregisterServer();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment