how to use COMClassInfo with c++?

May 31 at 5:47 AM
I ran remote hook using EasyHook (hook Beep() in Tutorials )with C++ successful.
Then I want to hook a com interface. But when i create a COMClassInfo object : COMClassInfo cci1 = new COMClassInfo(typeof(CLSID_DirectInputDevice8), typeof(IID_IDirectInputDevice8W), "GetCapabilities");
It failed : undeclared identifier COMClassInfo . I have already included "easyhook.h"

environment: easyhook v2.7.6270.0 , vs2017 ,win10 64