Jason Hilton jworld789 at yahoo.com
Fri Feb 6 20:13:41 CET 2009

Okay, so I am new to python win32 development and I am trying to find the location of icons on the desktop. I understand that the desktop is just a listview control so theoretically I should be able to use this code-

from commctrl import *
from win32gui import *
from ctypes import *

class POINT(Structure):

desk=1435653    # Handle to the desktop. I just made this up for the example here.


I think this is supposed to return the point that the icon in index 0 is located at, but when I try to use this, explorer crashes. I have researched this online and found similar predicaments that other people have had where explorer crashed using GETITEMPOSITION, but those examples are in other programming languages that I can't read and don't understand, and I haven't found any examples in Python on how to overcome this problem, if indeed it is possible.

Any help?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090206/72a82e38/attachment.htm>

More information about the python-win32 mailing list