Manually allocating the minifilter context instead of FltAllocateContext

Can I allocate the instance context manualy (for example ctx = malloc()) and then set it via FltSetContext, instead of using FltAllocateContext?
Why do I need to use it at all FltAllocateContext()?

Nope. Its a reference FltMgrObject with a whole bunch of stuff in front of the address you see. You can control the allocation with callbacks.

What are you trying to achieve. I’ve done a lot of very whacky things with filter manager over the years and been tempted to do even whackier ones. But never this.