Porting Windows Dynamic Link Libraries to Linux
Did this close to twenty years ago. Ported a COM DLL to Linux and one of the executables using it.I implemented everything it needed. COM functions like CoCreateInstance, entry points like DllCanUnloadNow, Windows Sockets and whatnot.The registry API! Ha. I mapped HKEY_CURRENT_USER to configuration files rooted in the user's home directory, and HKEY_LOCAL_MACHINE to /etc.The lib's DllRegisterServer nicely registered its COM class inside the fake registry.Don "COM is Love" Box would have teared up had he seen this.