Commit 544a1a2c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

Added implementation of ATLRegistrar.

parent 20c93c2c
Makefile
atl.dll.dbg.c
atl.spec.def
atliface.h
......@@ -3,13 +3,17 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = atl.dll
IMPORTS = ole32 user32 kernel32 advapi32
EXTRALIBS = -luuid
IMPORTS = ole32 shlwapi user32 advapi32 kernel32
EXTRALIBS = $(LIBUNICODE) -luuid
C_SRCS = \
atl_main.c \
registrar.c \
regsvr.c
IDL_SRCS = \
atliface.idl
@MAKE_DLL_RULES@
### Dependencies:
/*
* Copyright 2005 Jacek Caban
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import "ocidl.idl";
cpp_quote("#ifdef ATL_INITGUID")
cpp_quote("#include \"initguid.h\"")
cpp_quote("#endif")
[
object,
oleautomation,
uuid(44EC053B-400F-11D0-9DCD-00A0C90391D3)
]
interface IRegistrar : IUnknown
{
HRESULT AddReplacement(
[in] LPCOLESTR Key,
[in] LPCOLESTR item);
HRESULT ClearReplacements();
HRESULT ResourceRegisterSz(
[in] LPCOLESTR resFileName,
[in] LPCOLESTR szID,
[in] LPCOLESTR szType);
HRESULT ResourceUnregisterSz(
[in] LPCOLESTR resFileName,
[in] LPCOLESTR szID,
[in] LPCOLESTR szType);
HRESULT FileRegister(
[in] LPCOLESTR fileName);
HRESULT FileUnregister(
[in] LPCOLESTR fileName);
HRESULT StringRegister(
[in] LPCOLESTR data);
HRESULT StringUnregister(
[in] LPCOLESTR data);
HRESULT ResourceRegister(
[in] LPCOLESTR resFileName,
[in] UINT nID,
[in] LPCOLESTR szType);
HRESULT ResourceUnregister(
[in] LPCOLESTR resFileName,
[in] UINT nID,
[in] LPCOLESTR szType);
}
cpp_quote("DEFINE_GUID(CLSID_ATLRegistrar,0x44ec053a,0x400f,0x11d0,0x9d,0xcd,0x00,0xa0,0xc9,0x03,0x91,0xd3);")
......@@ -31,14 +31,12 @@
#include "winerror.h"
#include "objbase.h"
#include "initguid.h"
#include "atliface.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(atl);
DEFINE_GUID( CLSID_ATLRegistrar, 0x44ec053a,0x400f,0x11d0,0x9d,0xcd,0x00,0xa0,0xc9,0x03,0x91,0xd3 );
/*
* Near the bottom of this file are the exported DllRegisterServer and
* DllUnregisterServer, which make all this worthwhile.
......@@ -554,16 +552,3 @@ HRESULT WINAPI ATL_DllUnregisterServer(void)
hr = unregister_interfaces(interface_list);
return hr;
}
/***********************************************************************
* DllGetClassObject (ATL.@)
*/
HRESULT WINAPI ATL_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
if (IsEqualCLSID (rclsid, &CLSID_ATLRegistrar)) {
FIXME("No COM Class for ATLRegistrar\n");
return CLASS_E_CLASSNOTAVAILABLE;
}
FIXME("(%s, %s, %p): no interface found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
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