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