Getting an image from a file on windows

IronManMark20 mr.smittye at gmail.com
Thu May 28 21:39:41 EDT 2015


On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote:
> 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)?

Thanks so much! That seems to have done it. Now I get to figure out how to get the image. 



More information about the Python-list mailing list