Getting an image from a file on windows

IronManMark20 mr.smittye at gmail.com
Thu May 28 20:03:47 EDT 2015


Hello,

I have been working on a function that gets a bitmap of the thumbnail for a file. I have had problems getting a large image (256x256) and I was wondering if someone could help me on one object initialization that is driving me nuts.

I have code here: https://gist.github.com/IronManMark20/a83fe7ff7ea9b40c09af

I need to initialize a *void pointer for the third argument for SHGetImageList (ref https://msdn.microsoft.com/en-us/library/bb762185). 

What should the initialization look like (please give me example code, not just "Oh it should be a ctypes.c_void_p").

Thanks!!!



More information about the Python-list mailing list