propsys.SHGetPropertyStoreForWindow
PyIPropertyStore = SHGetPropertyStoreForWindow(hwnd, riid )
Retrieves a collection of a window's properties
Parameters
Comments
Requires Windows 7 or later.
Return Value
The returned store can be used to set the System.AppUserModel.ID property that determines how windows are grouped on the taskbar