Home > Software engineering > Or please Jiang Sheng and zhao four teacher ace to help me advice, such as replacing OCX
Or please Jiang Sheng and zhao four teacher ace to help me advice, such as replacing OCX
Time:09-22
North Pole: https://bbs.csdn.net/topics/392434614 Write their own name called XCDZIP35. OCX component, the XCDZIP35. OCX to replace any registration information, I want to ask 1. The old XCDZIP35. OCX have to change name can (name) 2. Old XCDZIP35. OCX UUID have to change 3. New XCDZIP35. OCX UUID should with unchanged in front of the old XCDZIP35. OCX as
CodePudding user response:
I have read your original post, first have to confirm the call ocx program you write? If you write, you just to record calls ocx parameters, these parameters must be through your program a method, you can directly record But not if the program you wrote, you cannot direct recording, you'll do a ocx transit doesn't do it, I suggest you go to the study of zhao four methods Old ocx isn't what you write, you can't recompile, that means you can't change it's uuid Ocx call is registered under the name of the class to ocx table query information, if you have replaced old ocx information into your new ocx, the program can call your ocx But the problem is your new ocx is according to the old old ocx ocx information to load, while the registration information of the old ocx information has been replaced with the new ocx, you guess what will happen
CodePudding user response:
Old ocx does not need to change name, but information registries need to move to a new clsids, so your new ocx can create this old ocx, because the original old ocx clsids captured by your new ocx, File name doesn't matter, don't change is change, the registry information in the file name also change together, New ocx clsids must be the same as the original clsids old ocx for this ID is a host program used to create the ocx,
Of course you also can Old OCX clsids doesn't change New OCX clsids with self-built The host program inside the old OCX clsids into new OCX clsids But this need to crack a host program find clsids storage format, and found the location of each clsids... Or directly to hijack the clsids once and for all,