Hi,
I have the following line in AddDevice() :
Status =
IoRegisterDeviceInterface(DeviceObject,(LPGUID)&GUID_CLASS_COMPORT,NULL,&Sym
bolicLinkName);
At link time I get:
pilotewdm.obj : error LNK2001: unresolved external symbol
_GUID_CLASS_COMPORT
objchk_w2K_x86\i386\WDMDriver.sys : fatal error LNK1120: 1 unresolved
externals
what is the lib to link to my driver ?
OK, I had’nt read all the documentation. I forgot to include “initguid.h”
“Nicolas Mugnier” a écrit dans le message de
news:xxxxx@ntdev…
>
> Hi,
> I have the following line in AddDevice() :
>
> Status =
>
IoRegisterDeviceInterface(DeviceObject,(LPGUID)&GUID_CLASS_COMPORT,NULL,&Sym
> bolicLinkName);
>
> At link time I get:
>
> pilotewdm.obj : error LNK2001: unresolved external symbol
> _GUID_CLASS_COMPORT
> objchk_w2K_x86\i386\WDMDriver.sys : fatal error LNK1120: 1 unresolved
> externals
>
>
> what is the lib to link to my driver ?
>
>
>
>
>
>