New GitHub issue #92381 from aryan-debug:<br>

<hr>

<pre>
I am not sure where to report this or if this is even a bug in cpython, or if it is my fault. 

Bug:
I am coding a window by using Windows API, but I am using python instead of C++. It has a bunch of buttons and when the button's height exceeds the height of the window, I want to use a scrollbar to move up and down. I used ScrollWindowEx. If you read the [documentation](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-scrollwindowex), it says that I may pass NULL as the 4th parameter and for the 5th parameter as well. In python, I passed None and this is the error I got: `ctypes.ArgumentError: argument 4: <class 'TypeError'>: expected RECT instance instead of NoneType`. I believe that is a bug in the implementation of Cpython, but I might be wrong. Also, when I pass in a RECT() in both parameter, a big chunk of window disappears from the top-left corner. If you want to replicate that, pass `RECT(0, 0, 567, 561)` in both arguments and you should see that bug as well.

If you want to run my code on your machine, you will need two files: [user32.py](https://gist.github.com/aryan-debug/3b025cde064945fe63dd729a67bc7cbb) and [main.py](https://gist.github.com/aryan-debug/7893aa4abbc10a9b3cee53d88a4c6ede)
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/92381">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>