Commit f4d0d638 authored by Alexandre Julliard's avatar Alexandre Julliard

dinput: Convert dll registration to the IRegistrar mechanism.

parent b89ea84e
......@@ -13,11 +13,12 @@ C_SRCS = \
joystick_linuxinput.c \
joystick_osx.c \
keyboard.c \
mouse.c \
regsvr.c
mouse.c
IMPLIB_SRCS = data_formats.c
IDL_R_SRCS = dinput_classes.idl
RC_SRCS = version.rc
@MAKE_DLL_RULES@
/*
* COM Classes for dinput
*
* Copyright 2010 Alexandre Julliard
*
* 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
*/
[
helpstring("DirectInput Object"),
threading(both),
uuid(25e609e0-b259-11cf-bfc7-444553540000)
]
coclass DirectInput { interface IDirectInput; }
[
helpstring("DirectInputDevice Object"),
threading(both),
uuid(25e609e1-b259-11cf-bfc7-444553540000)
]
coclass DirectInputDevice { interface IDirectInputDevice; }
......@@ -44,6 +44,8 @@
#include "winbase.h"
#include "winuser.h"
#include "winerror.h"
#include "objbase.h"
#include "rpcproxy.h"
#include "dinput_private.h"
#include "device_private.h"
......@@ -883,6 +885,22 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DINPUT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( DINPUT_instance, NULL );
}
/***********************************************************************
* DllUnregisterServer (DINPUT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( DINPUT_instance, NULL );
}
/******************************************************************************
* DInput hook thread
*/
......
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