Hi,

My usb function driver pxa25xusbfn.dll fails to load. It reaches
DLL_process_attach in the MDD and then
goes into Dllentry in PDD (not sure why there are 2 dllentry's ) then
returns to DevMgr code which later calls
DeleteDevice on which the driver unloads.

I get the following debug output:

DEVICE!CreateDevice: illegal entry point combination in driver DLL:
pxa25xusbfn.dll

To save me some debugging time, does anyone know why this error ocurs. Is it
something to do with the fact there
are 2 dllentry points.

Regards

Re: Driver load error by David

David
Fri Aug 26 12:52:14 CDT 2005

Are you sure you are using Microsoft MDD for USB Function driver? It
complain the stream interface entry is not found. Can you double check your
.def to make sure all the UFN_xxx has been exported.

David Liao

"ms" <ms@discussions.microsoft.com> wrote in message
news:OGxLWRlqFHA.1272@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> My usb function driver pxa25xusbfn.dll fails to load. It reaches
> DLL_process_attach in the MDD and then
> goes into Dllentry in PDD (not sure why there are 2 dllentry's ) then
> returns to DevMgr code which later calls
> DeleteDevice on which the driver unloads.
>
> I get the following debug output:
>
> DEVICE!CreateDevice: illegal entry point combination in driver DLL:
> pxa25xusbfn.dll
>
> To save me some debugging time, does anyone know why this error ocurs. Is
> it
> something to do with the fact there
> are 2 dllentry points.
>
> Regards
>
>



Re: Driver load error by David

David
Fri Aug 26 15:55:46 CDT 2005

Are you sure you are using Microsoft MDD for USB Function driver? It
complains the stream interface entry is not found or incomplete. Can you
double check your .def to make sure all the UFN_xxx has been exported.

David Liao

"ms" <ms@discussions.microsoft.com> wrote in message
news:OGxLWRlqFHA.1272@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> My usb function driver pxa25xusbfn.dll fails to load. It reaches
> DLL_process_attach in the MDD and then
> goes into Dllentry in PDD (not sure why there are 2 dllentry's ) then
> returns to DevMgr code which later calls
> DeleteDevice on which the driver unloads.
>
> I get the following debug output:
>
> DEVICE!CreateDevice: illegal entry point combination in driver DLL:
> pxa25xusbfn.dll
>
> To save me some debugging time, does anyone know why this error ocurs. Is
> it
> something to do with the fact there
> are 2 dllentry points.
>
> Regards
>
>



Re: Driver load error by ms

ms
Fri Aug 26 17:18:42 CDT 2005

Hi David

Thanks, Yes i am using the Microsoft mdd in the
public\common\oak\drivers\usbfn\controller\mdd ,

UFN_Init
UFN_Deinit
UFN_Open
UFN_Close
UFN_PowerDown
UFN_PowerUp
UFN_IOControl

I've done a dumpbin /exports on pxa25xusbfn.dll and these are the
functions exported. I've gone into
the device manager source and tracked down where it is failing. It seems to
be when GetProcaddress is
called on the various dll entry points. All the addressses of the
respective function pointers are 0x00000000
so this is why it would fail the check which results in
DEVICE!CreateDevice: illegal entry point combination in driver DLL.
Maybe there is something wrong with my dll function address fixups? Any
ideas

Do you know why there are 2 dllentry's one for the mdd and the other for
pdd, which mdd calls?

Regards



"David Liao (MS)" <davli@online.microsoft.com> wrote in message
news:%23DfaaCoqFHA.4076@tk2msftngp13.phx.gbl...
> Are you sure you are using Microsoft MDD for USB Function driver? It
> complains the stream interface entry is not found or incomplete. Can you
> double check your .def to make sure all the UFN_xxx has been exported.
>
> David Liao
>
> "ms" <ms@discussions.microsoft.com> wrote in message
> news:OGxLWRlqFHA.1272@TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > My usb function driver pxa25xusbfn.dll fails to load. It reaches
> > DLL_process_attach in the MDD and then
> > goes into Dllentry in PDD (not sure why there are 2 dllentry's ) then
> > returns to DevMgr code which later calls
> > DeleteDevice on which the driver unloads.
> >
> > I get the following debug output:
> >
> > DEVICE!CreateDevice: illegal entry point combination in driver DLL:
> > pxa25xusbfn.dll
> >
> > To save me some debugging time, does anyone know why this error ocurs.
Is
> > it
> > something to do with the fact there
> > are 2 dllentry points.
> >
> > Regards
> >
> >
>
>



Re: Driver load error by Steve

Steve
Fri Aug 26 19:19:54 CDT 2005

Did you use the correct .DEF file. Clearly those functions are not being
exported if GetProcAddress() is failing.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: Driver load error by ms

ms
Sat Aug 27 01:59:28 CDT 2005

Thanks Steve, i had spelt the 'prefix' incorrect in the registry. Finally
can you say why there are 2 dllentry's
with USB function drivers one in the mdd and one in the pdd (which mdd
calls)

Regards


"Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message
news:eBJ0m0pqFHA.2592@TK2MSFTNGP09.phx.gbl...
> Did you use the correct .DEF file. Clearly those functions are not being
> exported if GetProcAddress() is failing.
>
> --
> Steve Maillet
> EmbeddedFusion
> www.EmbeddedFusion.com
> smaillet at EmbeddedFusion dot com
>
>



Re: Driver load error by Steve

Steve
Sat Aug 27 06:25:18 CDT 2005

Those are not 2 entries. The MDD is the entry point which, as you say, then
calls the PDD. The PDD is not exposed directly outside the driver. The MDD
is the top layer of the driver and the PDD is the bottom hardware specific
layer.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com