コードを見やすくしたいんですけど、

class CDInput8{...};
void* pvRef;

として、

((CDInput8*)pvRef)->DInput->CreateDevice(...);


これ、綺麗になりませんか?