Search notes:

CoCreateInstanceEx

The first parameter of CoCreateInstanceEx is CLSID (which is a GUID) of the object to be created. The passed GUID is looked up in the registry under Registry: HKEY_CLASSES_ROOT\CLSID[`HKEY_CLASSES_ROOT\CLSID.
If such a CLSID was found, it tries to locate the path of the required DLL under the InprocServer32 subkey..
If such a DLL was found, it loads the DLL with LoadLibrary() and then calls DllGetClassObject which returns an instance of the class factory.
Then, the class factory's CreateInstance() is called which returns a pointer to a vtbl to of the required interface.

See also

The VBA operator new.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1745368687, '160.79.111.176', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/development/COM/API/CoCreateInstanceEx/index(45): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78