You can use struct.pack to create a buffer containing a DROPFILES struct:
"""
typedef struct _DROPFILES {
DWORD pFiles;
POINT pt;
BOOL fNC;
BOOL fWide; } DROPFILES, *LPDROPFILES;
"""
fname_buf='\0'.join(fnames)+'\0\0'
fmt="lllll%ss" %len(fname_buf)
df=struct.pack(fmt, 20, 0, 0, 0, 0, fname_buf)
ret_stg.set(pythoncom.TYMED_HGLOBAL, df)
Roger
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
