mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
implementation of HidD_GetHidGuid()
svn path=/trunk/; revision=10090
This commit is contained in:
+19
-2
@@ -16,7 +16,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: hid.c,v 1.1 2004/07/12 15:08:43 weiden Exp $
|
||||
/* $Id: hid.c,v 1.2 2004/07/12 16:04:37 weiden Exp $
|
||||
*
|
||||
* PROJECT: ReactOS Hid User Library
|
||||
* FILE: lib/hid/hid.c
|
||||
@@ -31,6 +31,9 @@
|
||||
|
||||
HINSTANCE hDllInstance;
|
||||
|
||||
/* device interface GUID for HIDClass devices */
|
||||
const GUID HidClassGuid = {0x4D1E55B2, 0xF16F, 0x11CF, {0x88,0xCB,0x00,0x11,0x11,0x00,0x00,0x30}};
|
||||
|
||||
BOOL STDCALL
|
||||
DllMain(HINSTANCE hinstDLL,
|
||||
DWORD dwReason,
|
||||
@@ -54,6 +57,7 @@ DllMain(HINSTANCE hinstDLL,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* HidP_GetButtonCaps EXPORTED
|
||||
*
|
||||
@@ -70,6 +74,19 @@ HidP_GetButtonCaps(IN HIDP_REPORT_TYPE ReportType,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* HidD_GetHidGuid EXPORTED
|
||||
*
|
||||
* @implemented
|
||||
*/
|
||||
HIDAPI
|
||||
VOID DDKAPI
|
||||
HidD_GetHidGuid(OUT LPGUID HidGuid)
|
||||
{
|
||||
*HidGuid = HidClassGuid;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* HidP_GetValueCaps EXPORTED
|
||||
*
|
||||
@@ -103,7 +120,7 @@ HidD_Hello(OUT PCHAR Buffer,
|
||||
IN ULONG BufferLength)
|
||||
{
|
||||
const PCHAR const HelloString = "Hello\nI hate Jello\n";
|
||||
int StrSize = lstrlenA(HelloString) + sizeof(CHAR);
|
||||
ULONG StrSize = lstrlenA(HelloString) + sizeof(CHAR);
|
||||
|
||||
memcpy(Buffer, HelloString, min(StrSize, BufferLength));
|
||||
return StrSize;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define __HIDINTERNAL_H
|
||||
|
||||
extern HINSTANCE hDllInstance;
|
||||
extern const GUID HidClassGuid;
|
||||
|
||||
#endif /* __HIDINTERNAL_H */
|
||||
|
||||
|
||||
+1
-12
@@ -1,4 +1,4 @@
|
||||
/* $Id: stubs.c,v 1.1 2004/07/12 15:08:43 weiden Exp $
|
||||
/* $Id: stubs.c,v 1.2 2004/07/12 16:04:37 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Hid User Library
|
||||
@@ -82,17 +82,6 @@ HidD_GetFeature(IN HANDLE HidDeviceObject,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
HIDAPI
|
||||
VOID DDKAPI
|
||||
HidD_GetHidGuid(OUT LPGUID HidGuid)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user