i’m trying to register for HID Pnp event with the following code :
status=IoRegisterPlugPlayNotification(
EventCategoryDeviceInterfaceChange,
PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
(PVOID)&GUID_DEVINTERFACE_HID,pdx->Pdo->DriverObject,
(PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)PnpNotificationCallBack,pdx,&pdx->Hid
NotificationHandle);
but i’m geting this on build :
ReadWrite.obj : error LNK2001: unresolved external symbol
_GUID_DEVINTERFACE_HID
objchk_wxp_x86\i386\somedriver.sys : fatal error LNK1120: 1 unresolved
externals
though im including “hidclass.h”
i’ve done it with GUID_DEVINTERFACE_COMPORT already , including “ntddser.h”
and it’s working good .
Hello Ronan,
Try including “initguid.h” before “hidclass.h”.
Andrei
Ronan Launay wrote:
i’m trying to register for HID Pnp event with the following code :
status=IoRegisterPlugPlayNotification(
EventCategoryDeviceInterfaceChange,
PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
(PVOID)&GUID_DEVINTERFACE_HID,pdx->Pdo->DriverObject,
(PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)PnpNotificationCallBack,pdx,&pdx->Hid
NotificationHandle);
but i’m geting this on build :
ReadWrite.obj : error LNK2001: unresolved external symbol
_GUID_DEVINTERFACE_HID
objchk_wxp_x86\i386\somedriver.sys : fatal error LNK1120: 1 unresolved
externals
though im including “hidclass.h”
i’ve done it with GUID_DEVINTERFACE_COMPORT already , including “ntddser.h”
and it’s working good .
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@bitdefender.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
–
Ignorance more frequently begets confidence than does knowledge.
— Charles Darwin
–
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
Thanks !
that was it .
RL
“Andrei Zlate-Podani” a écrit dans le message de
news:xxxxx@ntdev…
> Hello Ronan,
>
> Try including “initguid.h” before “hidclass.h”.
>
> Andrei
>
>
> Ronan Launay wrote:
>
> >i’m trying to register for HID Pnp event with the following code :
> >
> >status=IoRegisterPlugPlayNotification(
> > EventCategoryDeviceInterfaceChange,
> > PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES,
> > (PVOID)&GUID_DEVINTERFACE_HID,pdx->Pdo->DriverObject,
> >
>
>(PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)PnpNotificationCallBack,pdx,&pdx->Hi
d
> >NotificationHandle);
> >
> >but i’m geting this on build :
> >ReadWrite.obj : error LNK2001: unresolved external symbol
> >_GUID_DEVINTERFACE_HID
> >objchk_wxp_x86\i386\somedriver.sys : fatal error LNK1120: 1 unresolved
> >externals
> >
> >though im including “hidclass.h”
> >
> >i’ve done it with GUID_DEVINTERFACE_COMPORT already , including
“ntddser.h”
> >and it’s working good .
> >
> >
> >
> >
> >—
> >Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
> >
> >You are currently subscribed to ntdev as: xxxxx@bitdefender.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
>
>
> –
> Ignorance more frequently begets confidence than does knowledge.
> — Charles Darwin
>
>
>
> –
> This message was scanned for spam and viruses by BitDefender.
> For more information please visit http://linux.bitdefender.com/
>
>