Commit in reactos/lib/hid on MAIN
hid.c+19-21.1 -> 1.2
internal.h+11.1 -> 1.2
stubs.c+1-121.1 -> 1.2
+21-14
3 modified files
implementation of HidD_GetHidGuid()

reactos/lib/hid
hid.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- hid.c	12 Jul 2004 15:08:43 -0000	1.1
+++ hid.c	12 Jul 2004 16:04:37 -0000	1.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 @@
   return TRUE;
 }
 
+
 /*
  * HidP_GetButtonCaps							EXPORTED
  *
@@ -71,6 +75,19 @@
 
 
 /*
+ * HidD_GetHidGuid							EXPORTED
+ *
+ * @implemented
+ */
+HIDAPI
+VOID DDKAPI
+HidD_GetHidGuid(OUT LPGUID HidGuid)
+{
+  *HidGuid = HidClassGuid;
+}
+
+
+/*
  * HidP_GetValueCaps							EXPORTED
  *
  * @implemented
@@ -103,7 +120,7 @@
            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;

reactos/lib/hid
internal.h 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- internal.h	12 Jul 2004 15:08:43 -0000	1.1
+++ internal.h	12 Jul 2004 16:04:37 -0000	1.2
@@ -2,6 +2,7 @@
 #define __HIDINTERNAL_H
 
 extern HINSTANCE hDllInstance;
+extern const GUID HidClassGuid;
 
 #endif /* __HIDINTERNAL_H */
 

reactos/lib/hid
stubs.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- stubs.c	12 Jul 2004 15:08:43 -0000	1.1
+++ stubs.c	12 Jul 2004 16:04:37 -0000	1.2
@@ -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
@@ -86,17 +86,6 @@
  * @unimplemented
  */
 HIDAPI
-VOID DDKAPI
-HidD_GetHidGuid(OUT LPGUID HidGuid)
-{
-  UNIMPLEMENTED;
-}
-
-
-/*
- * @unimplemented
- */
-HIDAPI
 BOOLEAN DDKAPI
 HidD_GetIndexedString(IN HANDLE HidDeviceObject,
                       IN ULONG StringIndex,
CVSspam 0.2.8