Hi,
I've noticed that the AddDevice member of DRIVER_EXTENSION is not declared as 
a functio  pointer. I've put up a patch to fix this.

Alessandro Pignotti
-- 
Vi Veri Veniversum Vivus Vici
        -Dr. Faustus - Marlowe
Public GPG Key ID 0x650B3ED9 on subkeys.gpg.net
Key Fingerprint 6243 AAD3 E3EC 52D8 DFAA 2A2F 9FCD 0457 650B 3ED9
Encrypted mails are welcome
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 3e4528b..c8089a8 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -300,7 +319,7 @@ typedef struct _DEVICE_OBJECT *PDEVICE_OBJECT;
 
 typedef struct _DRIVER_EXTENSION {
   struct _DRIVER_OBJECT  *DriverObject;
-  PVOID  AddDevice;
+  NTSTATUS (*AddDevice)(IN struct _DRIVER_OBJECT*  DriverObject, IN struct _DEVICE_OBJECT*  PhysicalDeviceObject);
   ULONG  Count;
   UNICODE_STRING  ServiceKeyName;
 } DRIVER_EXTENSION, *PDRIVER_EXTENSION;

Attachment: signature.asc
Description: This is a digitally signed message part.



Reply via email to