Re: Can't link nk.lib and coredll.lib in kern.exe



Wait a minute! You're new to programming and you're trying to modify an OAL
to get the Ethernet address of some connected hardware? Wrong early
project! Get someone who is not new to programming to help you in the
office with you.

Paul T.

"Michel van Geffen" <MichelvanGeffen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:42C51E17-B754-4FFD-80CC-C01D3048B8B1@xxxxxxxxxxxxxxxx
Sorry I ask, but I am kind of new in the programming business. But in
regard
to what Paul said, how can I access the ethernet hardware directly to
retrieve the current mac address.

Kind regards,

Michel van Geffen
Student at the Avans University of Professional Education

"Dean Ramsier" wrote:

Doesn't work in CE6 either. The OAL can't be linked to coredll. Kernel
mode drivers (or any other module loaded into the kernel) can...
--
Dean Ramsier - eMVP
BSQUARE Corporation


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT
com> wrote in message news:%23abDFIhqIHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
It doesn't make sense to link with coredll in the kernel, no. In CE6,
the
architecture changes and if I'm thinking correctly, you should be able
to
do that (you're actually linked to the kernel version of coredll.dll,
in
that case).

I think that, for what you're talking about, you'll have to access the
hardware directly from the OAL and get the MAC address.

Paul T.

"Michel van Geffen" <MichelvanGeffen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in
message news:8A3824F5-B6FA-40C3-9C3C-3835205E6872@xxxxxxxxxxxxxxxx
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







.



Relevant Pages