[python-win32] Strange behaviour of SHGetFileInfo

2022-12-29 Thread Piotr Wilk
Hello everyone, I'm trying to get the information about the current overlay icon for a file on Windows. To get this information I use the SHGetFileInfo function. Here is my function code: def get_system_overlay_index_fo_file(path: Path) -> int: > flags = shellcon.SHGFI_ICON | 0x00040 #

[python-win32] List all fonts filename

2022-12-29 Thread Moi15 Moi
Hi, Is it possible to list all the fonts filename with pywin32? >From what I can see, it is possible with the GetFontData from GDI. Here is an example in c++: