I like to use a unregistered COM DLL within my Python application. The COM DLL functions should be able to load at runtime without using regsrv32.exe before. I tried the approach pointed out here. https://flylib.com/books/en/2.9.1.219/1/
from ctypes import oledll, windll, cdll
import win32com.client
dll_oledll = oledll[r'myCOM.dll']
result_oledll = dll_oledll.DllRegisterServer()
Unfortunately this leads to the following access denied error.
result_oledll = dll_oledll.DllRegisterServer()
File "_ctypes/callproc.c", line 948, in GetResult
PermissionError: [WinError -2147024891]
What does this error mean, what do I do wrong here?