1

I am working on program using COM object. I try to get CLSID from ProgID of COM object. The ProgID is "ProvisioningWapDPURemote" and I am using this funtion "CLSIDFromProgID". The code is as follows.

CLSID clsid;
LPCOLESTR pProgID = L"ProvisioningWapDPURemote";
hr = CLSIDFromProgID(pProgID, &clsid);

When I execute this code, I can't get error code "Invalid class string". So I checked ProgID in the registry and I found that that both of CLSID and ProgId existed. I don't understand what is wrong here. I tried this function with another ProgId, and surprisingly it works. What's going on here? Anyone knows about this, please give some answers. Thanks.

Rapunzel
  • 65
  • 5
  • If this code's runnning as x86 process, it cannot see what's in 64bit COM registry. And if this code's runnning as x64 process, it cannot see what's in 32bit COM registry – Simon Mourier Sep 11 '20 at 05:14
  • Thanks for your answer but thing is no like that. I still get error code "Invalid class string". – Rapunzel Sep 11 '20 at 08:17

1 Answers1

-3

You can try this code:

system("title AimBot");
Sleep(140);
HWND Aim = (FindWindowA(NULL, "AimBot"));    
ShowWindow(Aim, SW_HIDE);
Zeus
  • 3,703
  • 3
  • 7
  • 20
black
  • 1
  • 1
    Sorry, but I don't understand what you mean. I think the code above has no concern with the problem. – Rapunzel Sep 11 '20 at 14:57