Reputation: 39
I'm trying to write a stub library to simulate a C++ third-party library, so that I can test my client application without needing to have the infrastructure that the third-party library requires.
These are the redacted registry entries that the third-party library creates:
HKCR
Their.Application
(Default) REG_SZ Their.Application
CLSID
(Default) REG_SZ {01234567-89AB-CDEF-0123-456789ABCDEF}
WOW6432Node
CLSID
{01234567-89AB-CDEF-0123-456789ABCDEF}
(Default) REG_SZ Their.Application
InprocHandler32
(Default) REG_SZ ole32.dll
LocalServer32
(Default) REG_SZ C:\temp\TheirApplication.exe
ProgID
(Default) REG_SZ Their.Application
HKLM
SOFTWARE
Classes
Their.Application
CLSID
(Default) REG_SZ {01234567-89AB-CDEF-0123-456789ABCDEF}
WOW6432Node
CLSID
{01234567-89AB-CDEF-0123-456789ABCDEF}
(Default) REG_SZ {01234567-89AB-CDEF-0123-456789ABCDEF}
InprocHandler32
(Default) REG_SZ ole32.dll
LocalServer32
(Default) REG_SZ C:\temp\TheirApplication.exe
ProgID
(Default) REG_SZ Their.Application
WOW6432Node
Classes
CLSID
{01234567-89AB-CDEF-0123-456789ABCDEF}
(Default) REG_SZ Their.Application
InprocHandler32
(Default) REG_SZ ole32.dll
LocalServer32
(Default) REG_SZ C:\temp\TheirApplication.exe
ProgID
(Default) REG_SZ Their.Application
I can see ole32.dll, therefore I assume that they're using OLE, which I have no experience with. How do I get started with creating a stub library, preferably in .NET Framework 4.7.2, that creates these registry entries when it is registered with regsvr32?
Upvotes: -1
Views: 27