Getting an image from a file on windows

MRAB python at mrabarnett.plus.com
Thu May 28 20:36:46 EDT 2015


On 2015-05-29 01:03, IronManMark20 wrote:
> 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!!!
>
Have you tried byref(hico)?



More information about the Python-list mailing list