I am looking to implement windows api with python pywin32
then I want to hide a screenshot application. I have seen other options like using C/C++
language but I don’t know, what do you recommend?
from win32gui import FindWindow
from ctypes import windll
while True:
WDA_EXCLUDEFROMCAPTURE = 0x00000011.
hwnd = FindWindow(None, 'Microsoft Edge')
windll.user32.SetWindowDisplayAffinity(hwnd, WDA_EXCLUDEFROMCAPTURE)
```
I tried that because I could not find the SetWindowDisplayAffinity function or if it is called the other way.
I am inexperienced in the windows api and I really want to know what I am doing wrong, could it be that python can not reach that level? or is not yet implemented that function in the library? or there are easier ways? I want to create a script for now but eventually I would like to continue scanning these functions.