i am trying to use kernal32 dll and use functions from it. when trying to do that, i got the error.
Traceback (most recent call last): File "C:\Users\Tawfiq\Desktop\2D render\win32.py", line 2, in <module> mydll = cdll.LoadLibrary(r"C:\Windows\SysWOW64\kernel32.dll") File "C:\Program Files\Python39\lib\ctypes\__init__.py", line 452, in LoadLibrary return self._dlltype(name) File "C:\Program Files\Python39\lib\ctypes\__init__.py", line 374, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application this is the code i am executing:
from ctypes import* mydll = cdll.LoadLibrary(r"C:\Windows\SysWOW64\kernel32.dll") print(mydll.timeGetTime())