Yes, I've already seen that, but there's no such thing... I hear it's a windows vista api called dwm. Is there a way to access it from python?

Yes there is a way. Use python's ctypes

Maybe someone else can give you an example of how to use it. Or maybe you can just look at the documentation (it's not hard).

but how do I access that dll, I mean where is it placed. it should be dwm.dll or something (desktop window manager)

You don't need to know where the dll is placed (you don't redistribute it). In your python code, you just do:

import ctypes.windll.dwmapi as dwm

There is no such module

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import ctypes.windll.dwmapi as dwm
ImportError: No module named windll.dwmapi

There is no such module

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import ctypes.windll.dwmapi as dwm
ImportError: No module named windll.dwmapi

Yeah that's my bad:

import ctypes

dwm = ctypes.windll.dwmapi

I don't know :-/. I don't even really know what exactly you're trying to do except that it involves dwmapi.

This article has been dead for over six months. Start a new discussion instead.