Hello Daniel!
On Dienstag, 11. März 2008, Daniel Phillips wrote:
...
Win32 has IRP stacks, which do mostly the same AFAIU.
http://msdn2.microsoft.com/en-us/library/ms796144.aspx
How do you handle the reallocation?
- If you don't do it (but rely on the fact that the initial allocation is
enough), you might end up with NO_MORE_IRP_STACK_LOCATIONS
http://msdn2.microsoft.com/en-us/library/ms793675.aspx
- If you do reallocate, the allocations have to register themselves in
the emergency pool (see the current thread about swapping over NFS)
I don't say that it's impossible ... just that some "interesting" things will
await you.
That's different from the Win32 way AFAIK - there it's defined that every
layer *has* to use its own stack location. (But it's been some time since I
needed that, so I might be wrong.)
But I sure hope you succeed!
Regards,
Phil
--