Hi all,
I'm calling the function 'GenericRegisterInterface' into generic.lib (Walter
Oney's framework)
This function tries allocate a small (36 bytes) NonPagedPool and fails.
But, just after the call to 'GenericRegisterInterface' others allocations
work fine.
What's the problem with ExAllocatePool in functions imported from a lib?
Thanks Very Much
Edgard Lima
edgard.lima@cin.ufpe.br
GenericRegisterInterface(pdx->pgx, &GUID_DEVINTERFACE_WAYTSUSB);
void *p;
if ( p = ExAllocatePool(NonPagedPool, 36) ) {
KdPrint((DRIVERNAME " - Allocated 36\n"));
ExFreePool(p);
if ( p = ExAllocatePool(NonPagedPool, 128) ) {
KdPrint((DRIVERNAME " - Allocated 128\n"));
ExFreePool(p);
if ( p = ExAllocatePool(NonPagedPool, 1024) ) {
KdPrint((DRIVERNAME " - Allocated 1024\n"));
ExFreePool(p);
if ( p = ExAllocatePool(NonPagedPool, 2048) ) {
KdPrint((DRIVERNAME " - Allocated 2048\n"));
ExFreePool(p);
}
}
}
}