Commit c57519cf authored by Alexandre Julliard's avatar Alexandre Julliard

msdaps: Convert dll registration to the IRegistrar mechanism.

parent 6b7c7467
MODULE = msdaps.dll MODULE = msdaps.dll
IMPORTS = uuid oleaut32 ole32 rpcrt4 advapi32 IMPORTS = uuid oleaut32 ole32 rpcrt4 advapi32
EXTRADEFS = -DREGISTER_PROXY_DLL -DPROXY_CLSID_IS="{ 0x06210e88, 0x01f5, 0x11d1, { 0xb5, 0x12, 0x00, 0x80, 0xc7, 0x81, 0xc3, 0x84 } }" -DENTRY_PREFIX=msdaps_ EXTRADEFS = -DWINE_REGISTER_DLL -DPROXY_CLSID_IS="{ 0x06210e88, 0x01f5, 0x11d1, { 0xb5, 0x12, 0x00, 0x80, 0xc7, 0x81, 0xc3, 0x84 } }" -DENTRY_PREFIX=msdaps_
EXTRAIDLFLAGS = --win32-align=2 EXTRAIDLFLAGS = --win32-align=2
EXTRA_OBJS = dlldata.o EXTRA_OBJS = dlldata.o
C_SRCS = \ C_SRCS = \
main.c \ main.c \
regsvr.c \
row_server.c \ row_server.c \
usrmarshal.c usrmarshal.c
...@@ -19,4 +18,8 @@ IDL_P_SRCS = \ ...@@ -19,4 +18,8 @@ IDL_P_SRCS = \
msdaps.idl \ msdaps.idl \
row_server.idl row_server.idl
IDL_R_SRCS = \
msdaps.idl \
row_server.idl
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
...@@ -43,6 +43,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb); ...@@ -43,6 +43,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb);
extern BOOL WINAPI msdaps_DllMain(HINSTANCE, DWORD, LPVOID) DECLSPEC_HIDDEN; extern BOOL WINAPI msdaps_DllMain(HINSTANCE, DWORD, LPVOID) DECLSPEC_HIDDEN;
extern HRESULT WINAPI msdaps_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN; extern HRESULT WINAPI msdaps_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN;
extern HRESULT WINAPI msdaps_DllCanUnloadNow(void) DECLSPEC_HIDDEN; extern HRESULT WINAPI msdaps_DllCanUnloadNow(void) DECLSPEC_HIDDEN;
extern HRESULT WINAPI msdaps_DllRegisterServer(void) DECLSPEC_HIDDEN;
extern HRESULT WINAPI msdaps_DllUnregisterServer(void) DECLSPEC_HIDDEN;
/***************************************************************************** /*****************************************************************************
* DllMain * DllMain
...@@ -166,3 +168,19 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -166,3 +168,19 @@ HRESULT WINAPI DllCanUnloadNow(void)
{ {
return msdaps_DllCanUnloadNow(); return msdaps_DllCanUnloadNow();
} }
/***********************************************************************
* DllRegisterServer
*/
HRESULT WINAPI DllRegisterServer(void)
{
return msdaps_DllRegisterServer();
}
/***********************************************************************
* DllUnregisterServer
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return msdaps_DllUnregisterServer();
}
...@@ -175,6 +175,10 @@ typedef struct ...@@ -175,6 +175,10 @@ typedef struct
} }
[ [
helpstring("Wine OLE DB Row Server"),
threading(both),
progid("WINEDBROWPRX.AsServer.1"),
vi_progid("WINEDBROWPRX.AsServer"),
uuid(38248178-cf6d-11de-abe5-000c2916d865) uuid(38248178-cf6d-11de-abe5-000c2916d865)
] ]
coclass wine_row_server coclass wine_row_server
...@@ -183,6 +187,10 @@ coclass wine_row_server ...@@ -183,6 +187,10 @@ coclass wine_row_server
} }
[ [
helpstring("Wine OLE DB Row Proxy"),
threading(both),
progid("WINEDBROWPRX.AsProxy.1"),
vi_progid("WINEDBROWPRX.AsProxy"),
uuid(38248179-cf6d-11de-abe5-000c2916d865) uuid(38248179-cf6d-11de-abe5-000c2916d865)
] ]
coclass wine_row_proxy coclass wine_row_proxy
...@@ -191,6 +199,10 @@ coclass wine_row_proxy ...@@ -191,6 +199,10 @@ coclass wine_row_proxy
} }
[ [
helpstring("Wine OLE DB Rowset Server"),
threading(both),
progid("WINEDBRSTPRX.AsServer.1"),
vi_progid("WINEDBRSTPRX.AsServer"),
uuid(3824817a-cf6d-11de-abe5-000c2916d865) uuid(3824817a-cf6d-11de-abe5-000c2916d865)
] ]
coclass wine_rowset_server coclass wine_rowset_server
...@@ -199,6 +211,10 @@ coclass wine_rowset_server ...@@ -199,6 +211,10 @@ coclass wine_rowset_server
} }
[ [
helpstring("Wine OLE DB Rowset Proxy"),
threading(both),
progid("WINEDBRSTPRX.AsProxy.1"),
vi_progid("WINEDBRSTPRX.AsProxy"),
uuid(3824817b-cf6d-11de-abe5-000c2916d865) uuid(3824817b-cf6d-11de-abe5-000c2916d865)
] ]
coclass wine_rowset_proxy coclass wine_rowset_proxy
......
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