Can't link nk.lib and coredll.lib in kern.exe
- From: Michel van Geffen <MichelvanGeffen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 08:47:02 -0700
Hi all,
I am using WinCE 5, for creating an settopbox. In the OAL I want to adjust
the OALArgsQuery(OAL_ARGS_QUERY_DEVID) so that the mac address of the device
is returned to the calling function. In this case OALIoCtlHalGetDeviceId( ),
this is needed for DRM to work.
In OALArgsQuery(OAL_ARGS_QUERY_DEVID), I use the
DeviceIOControl(OID_802_3_CURRENT_ADDRESS) to get the current mac address of
the device. The function DeviceIOControl uses Coredll.lib, so I link this
library in the source of kern.exe, but NK.lib is already linked here, and
there are dubble methodcalls in the library's so I use /FORCE:MULTIPLE. This
generates several warnings, but the image builds. But when I run the image,
it does nothing. It won't boot. So I have a couple of questions about that.
Q1) Is it possible to link the two library's in the same source? If so how?
Q2) Is there another way to retrieve the current mac address? I have already
tried GetAdaptersInfo, but that doesn't work either.
Michel van Geffen
Student at the Avans University of Professional Education
.
- Follow-Ups:
- Re: Can't link nk.lib and coredll.lib in kern.exe
- From: Paul G. Tobey [eMVP]
- Re: Can't link nk.lib and coredll.lib in kern.exe
- Prev by Date: Re: GetVersionEx - dwBuildNumber how to change
- Next by Date: Re: Setting up registers on PXA270?
- Previous by thread: Re: How to write the NAND Driver by MDD and PDD Architecture in CE6.0
- Next by thread: Re: Can't link nk.lib and coredll.lib in kern.exe
- Index(es):
Relevant Pages
|