From: turambar n-nospam on
Hello,

I'm programming a virtual miniport driver that has to redirect every network
packets to a windows service.
To use this service, I need to link my driver with a library that was
originally developped with Visual Studio 2003 in C++ language. My driver is
written in C language.

But when I try to use functions from the DLL, even functions that do not
include classes, the build command gives me this error :
Linking Executable - objchk_wlh_x86\i386\netvmini.sys
errors in directory d:\projets\test
d:\projets\test\netvmini.obj : error LNK2019: unresolved external symbol
_InstallService@0 referenced in function _DriverEntry@8
d:\projets\test\objchk_wlh_x86\i386\netvmini.sys : error LNK1120: 1
unresolved externals

Is it possible to link my driver with this library or do I need to redevelop
it in C language ?

thanks.
From: Don Burn on
Your DLL is using Win32 calls, you cannot use these in the kernel. You
need to redesign things to not use functions not supported in the kernel.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



<turambar <n-nospam(a)free.fr> wrote in message
news:A21C6144-BF49-4C26-B7A4-E448750CD8E7(a)microsoft.com...
> Hello,
>
> I'm programming a virtual miniport driver that has to redirect every
> network
> packets to a windows service.
> To use this service, I need to link my driver with a library that was
> originally developped with Visual Studio 2003 in C++ language. My driver
> is
> written in C language.
>
> But when I try to use functions from the DLL, even functions that do not
> include classes, the build command gives me this error :
> Linking Executable - objchk_wlh_x86\i386\netvmini.sys
> errors in directory d:\projets\test
> d:\projets\test\netvmini.obj : error LNK2019: unresolved external symbol
> _InstallService@0 referenced in function _DriverEntry@8
> d:\projets\test\objchk_wlh_x86\i386\netvmini.sys : error LNK1120: 1
> unresolved externals
>
> Is it possible to link my driver with this library or do I need to
> redevelop
> it in C language ?
>
> thanks.