<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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-<br><br>from commctrl import *<br>from win32gui import *<br>from ctypes import *<br><br>class POINT(Structure):<br>&nbsp;&nbsp;&nbsp;&nbsp; _fields_=[('x',c_long),('y',c_long)]<br><br>desk=1435653&nbsp;&nbsp;&nbsp; # Handle to the desktop. I just made this up for the example here.<br><br>SendMessage(desk,LVM_GETITEMPOSITION,0,POINT())<br><br><br>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.<br><br>Any help?<br><br><br><br></td></tr></table><br>