Commit 986b33d1 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

msxml3: Use general DLL registration framework to register CLSIDs and ProgID's.

parent a652e285
......@@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = msxml3.dll
IMPORTS = urlmon shlwapi oleaut32 ole32 advapi32 kernel32 ntdll
IMPORTS = urlmon shlwapi oleaut32 ole32 user32 advapi32 kernel32 ntdll
EXTRALIBS = -luuid @XML2LIBS@ @XSLTLIBS@
EXTRAINCL = @XML2INCL@ @XSLTINCL@
......@@ -19,6 +19,7 @@ C_SRCS = \
nodelist.c \
nodemap.c \
parseerror.c \
regsvr.c \
text.c
SUBDIRS = tests
......
......@@ -59,33 +59,3 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
}
return TRUE;
}
static HRESULT add_key_val( LPCSTR key, LPCSTR valname, LPCSTR value )
{
HKEY hkey;
if (RegCreateKeyA( HKEY_CLASSES_ROOT, key, &hkey ) != ERROR_SUCCESS) return E_FAIL;
RegSetValueA( hkey, valname, REG_SZ, value, strlen( value ) + 1 );
RegCloseKey( hkey );
return S_OK;
}
HRESULT WINAPI DllRegisterServer(void)
{
LONG r;
r = add_key_val( "CLSID\\{2933BF90-7B36-11D2-B20E-00C04F983E60}",
NULL,
"XML DOM Document" );
r = add_key_val( "CLSID\\{2933BF90-7B36-11D2-B20E-00C04F983E60}\\InProcServer32",
NULL,
"msxml3.dll" );
return r;
}
HRESULT WINAPI DllUnregisterServer(void)
{
RegDeleteKeyA( HKEY_CLASSES_ROOT, "CLSID\\{2933BF90-7B36-11D2-B20E-00C04F983E60}\\InProcServer32" );
RegDeleteKeyA( HKEY_CLASSES_ROOT, "CLSID\\{2933BF90-7B36-11D2-B20E-00C04F983E60}" );
return S_OK;
}
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