problem with NdisMInitializeWrapper

Hello,

I have downloaded the windows CE passthru example.
Creating the dll is no problem.

The dll get loaded, but stops at NdisMInitializeWrapper.

NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT pDriverObject,
IN PUNICODE_STRING psRegistryPath
)
{
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
NDIS_STRING sName;
NDIS_PROTOCOL_CHARACTERISTICS ndisPChars;
NDIS_MINIPORT_CHARACTERISTICS ndisMChars;

Ausg("DriverEntry");

NdisAllocateSpinLock(&g_spinLock);

Ausg("InitWrapper");

NdisMInitializeWrapper(&g_hNdisWrapper, pDriverObject, psRegistryPath, NULL);

Ausg("Finished");


The "Ausg" function just writes information into a logfile.
The green one get called but the red one not.

Any ideas what could be the reason

Update:
Now i have got the Error Code. The Code is:
EXCEPTION_DATATYPE_MISALIGNMENT .
It seems that one of the paramters is not correct.

If someone knwo the problem it would be helpful.

THX for answers,
bwinter



Answer this question

problem with NdisMInitializeWrapper