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.<p>I implemented everything it needed. COM functions like CoCreateInstance, entry points like DllCanUnloadNow, Windows Sockets and whatnot.<p>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.<p>The lib's DllRegisterServer nicely registered its COM class inside the fake registry.<p>Don "COM is Love" Box would have teared up had he seen this.