How can you get a ProgID or ClassID directly from a dll or ocx without looking in the system registry?
Printable View
How can you get a ProgID or ClassID directly from a dll or ocx without looking in the system registry?
you will require at least the progID .if you have it you can use a API ClassIdfromProgID to find the clsID.
The thing is, I'm able to open a dll in Notepad and see the ProgID in the code. The trick is, the ProgID seems to be in different places for each dll or ocx that I open. I know there has to be a way of knowing the exact position of the ProgID within a dll file. How else does Regsvr32.exe register controls? You see, the ProgID is a combination of the Project Name and the Control Name. And I can find those two in each dll or ocx that I open.