It's not a plan, you know, it sounds like an intention. Besides, DirectX is a set of COM interfaces, not classes. So what you need is COM interface interception.