Commit b89cafaf authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard

hid: Initial implementation.

parent f6c0a461
...@@ -1614,6 +1614,7 @@ dlls/glu32/Makefile ...@@ -1614,6 +1614,7 @@ dlls/glu32/Makefile
dlls/glut32/Makefile dlls/glut32/Makefile
dlls/gphoto2.ds/Makefile dlls/gphoto2.ds/Makefile
dlls/hhctrl.ocx/Makefile dlls/hhctrl.ocx/Makefile
dlls/hid/Makefile
dlls/hlink/Makefile dlls/hlink/Makefile
dlls/hlink/tests/Makefile dlls/hlink/tests/Makefile
dlls/iccvid/Makefile dlls/iccvid/Makefile
......
...@@ -94,6 +94,7 @@ dsound/libdsound.def ...@@ -94,6 +94,7 @@ dsound/libdsound.def
gdi/libgdi32.def gdi/libgdi32.def
glu32/libglu32.def glu32/libglu32.def
glut32/libglut32.def glut32/libglut32.def
hid/libhid.def
hlink/libhlink.def hlink/libhlink.def
icmp/libicmp.def icmp/libicmp.def
imagehlp/libimagehlp.def imagehlp/libimagehlp.def
......
...@@ -68,6 +68,7 @@ BASEDIRS = \ ...@@ -68,6 +68,7 @@ BASEDIRS = \
gdi \ gdi \
gphoto2.ds \ gphoto2.ds \
hhctrl.ocx \ hhctrl.ocx \
hid \
hlink \ hlink \
iccvid \ iccvid \
icmp \ icmp \
...@@ -475,6 +476,7 @@ IMPORT_LIBS = \ ...@@ -475,6 +476,7 @@ IMPORT_LIBS = \
gdi/libgdi32.$(IMPLIBEXT) \ gdi/libgdi32.$(IMPLIBEXT) \
glu32/libglu32.$(IMPLIBEXT) \ glu32/libglu32.$(IMPLIBEXT) \
glut32/libglut32.$(IMPLIBEXT) \ glut32/libglut32.$(IMPLIBEXT) \
hid/libhid.$(IMPLIBEXT) \
hlink/libhlink.$(IMPLIBEXT) \ hlink/libhlink.$(IMPLIBEXT) \
icmp/libicmp.$(IMPLIBEXT) \ icmp/libicmp.$(IMPLIBEXT) \
imagehlp/libimagehlp.$(IMPLIBEXT) \ imagehlp/libimagehlp.$(IMPLIBEXT) \
...@@ -670,6 +672,9 @@ glu32/libglu32.$(IMPLIBEXT): glu32/glu32.spec $(WINEBUILD) ...@@ -670,6 +672,9 @@ glu32/libglu32.$(IMPLIBEXT): glu32/glu32.spec $(WINEBUILD)
glut32/libglut32.$(IMPLIBEXT): glut32/glut32.spec $(WINEBUILD) glut32/libglut32.$(IMPLIBEXT): glut32/glut32.spec $(WINEBUILD)
@cd glut32 && $(MAKE) libglut32.$(IMPLIBEXT) @cd glut32 && $(MAKE) libglut32.$(IMPLIBEXT)
hid/libhid.$(IMPLIBEXT): hid/hid.spec $(WINEBUILD)
@cd hid && $(MAKE) libhid.$(IMPLIBEXT)
hlink/libhlink.$(IMPLIBEXT): hlink/hlink.spec $(WINEBUILD) hlink/libhlink.$(IMPLIBEXT): hlink/hlink.spec $(WINEBUILD)
@cd hlink && $(MAKE) libhlink.$(IMPLIBEXT) @cd hlink && $(MAKE) libhlink.$(IMPLIBEXT)
......
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = hid.dll
IMPORTLIB = libhid.$(IMPLIBEXT)
IMPORTS = kernel32 ntdll
C_SRCS = \
main.c
RC_SRCS = version.rc
@MAKE_DLL_RULES@
### Dependencies:
@ stub HidD_FlushQueue
@ stub HidD_FreePreparsedData
@ stub HidD_GetAttributes
@ stub HidD_GetConfiguration
@ stub HidD_GetFeature
@ stdcall HidD_GetHidGuid(ptr)
@ stub HidD_GetIndexedString
@ stub HidD_GetInputReport
@ stub HidD_GetManufacturerString
@ stub HidD_GetMsGenreDescriptor
@ stub HidD_GetNumInputBuffers
@ stub HidD_GetPhysicalDescriptor
@ stub HidD_GetPreparsedData
@ stub HidD_GetProductString
@ stub HidD_GetSerialNumberString
@ stub HidD_Hello
@ stub HidD_SetConfiguration
@ stub HidD_SetFeature
@ stub HidD_SetNumInputBuffers
@ stub HidD_SetOutputReport
@ stub HidP_GetButtonCaps
@ stub HidP_GetCaps
@ stub HidP_GetData
@ stub HidP_GetExtendedAttributes
@ stub HidP_GetLinkCollectionNodes
@ stub HidP_GetScaledUsageValue
@ stub HidP_GetSpecificButtonCaps
@ stub HidP_GetSpecificValueCaps
@ stub HidP_GetUsageValue
@ stub HidP_GetUsageValueArray
@ stub HidP_GetUsages
@ stub HidP_GetUsagesEx
@ stub HidP_GetValueCaps
@ stub HidP_InitializeReportForID
@ stub HidP_MaxDataListLength
@ stub HidP_MaxUsageListLength
@ stub HidP_SetData
@ stub HidP_SetScaledUsageValue
@ stub HidP_SetUsageValue
@ stub HidP_SetUsageValueArray
@ stub HidP_SetUsages
@ stub HidP_TranslateUsagesToI8042ScanCodes
@ stub HidP_UnsetUsages
@ stub HidP_UsageListDifference
/*
* Human Input Devices
*
* Copyright (C) 2006 Kevin Koltzau
*
* 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
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(hid);
#include "initguid.h"
DEFINE_GUID(HID_GUID, 0x4D1E55B2, 0xF16F, 0x11CF, 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30);
/***********************************************************************/
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
switch(fdwReason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL);
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
void WINAPI HidD_GetHidGuid(LPGUID guid)
{
TRACE("(%p)\n", guid);
memcpy(guid, &HID_GUID, sizeof(GUID));
}
/*
* Copyright (C) 2006 Kevin Koltzau
*
* 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
*/
#define WINE_FILENAME_STR "hid.dll"
#include <wine/wine_common_ver.rc>
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