Commit 71dbeb2e authored by Alexandre Julliard's avatar Alexandre Julliard

gameux: Convert dll registration to the IRegistrar mechanism.

parent 092af1be
......@@ -6,10 +6,10 @@ C_SRCS = \
factory.c \
gameexplorer.c \
gamestatistics.c \
main.c \
regsvr.c
main.c
IDL_TLB_SRCS = gameux_tlb.idl
IDL_R_SRCS = gameux_tlb.idl
RC_SRCS = rsrc.rc
......
......@@ -27,6 +27,7 @@
#include "winbase.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "shobjidl.h"
#include "initguid.h"
#include "gameux.h"
......@@ -35,6 +36,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(gameux);
static HINSTANCE instance;
HRESULT WINAPI DllCanUnloadNow(void)
{
return S_FALSE;
......@@ -47,6 +50,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
instance = hInstDLL;
DisableThreadLibraryCalls(hInstDLL);
break;
case DLL_PROCESS_DETACH:
......@@ -54,3 +58,19 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
}
return TRUE;
}
/***********************************************************************
* DllRegisterServer (GAMEUX.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance, NULL );
}
/***********************************************************************
* DllUnregisterServer (GAMEUX.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance, NULL );
}
......@@ -170,6 +170,10 @@ library gameuxLib
}
[
helpstring("GameExplorer Class"),
threading(both),
progid("gameux.GameExplorer.1"),
vi_progid("gameux.GameExplorer"),
uuid(9A5EA990-3034-4D6F-9128-01F3C61022BC)
]
coclass GameExplorer
......@@ -178,6 +182,10 @@ library gameuxLib
};
[
helpstring("GameStatistics Class"),
threading(apartment),
progid("gameux.GameStatistics.1"),
vi_progid("gameux.GameStatistics"),
uuid(DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4)
]
coclass GameStatistics
......
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