It's working! Yey!

It was the "reinterpret_cast<CDirectInput*>(pContext) " I missed out...