Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Thomas Heller
Henry Baxter schrieb: > Thanks for the tip, venster not only has a neat way to resolve this issue, > but plenty of other really useful things (lists of windows constants and > other stuff that take time to assemble). > Then you might also be interested in the ctypeslib package; it is able to make

Re: [python-win32] Finding users home directories

2008-01-13 Thread Tim Golden
Mark Hammond wrote: >> it's possible, but not slick. If you wanted to follow their >> line and use WMI to access the registry, you could additionally >> use the WMI Win32_UserAccount class to work out the SID you need. >> For example, to find my profile on this machine, the following >> seems to wo

Re: [python-win32] Defining GUIDs and passing them as parameters

2008-01-13 Thread Mark Hammond
pywin32 has a GUID type, but as GUIDs can't be passed via a VARIANT, I assume your object will not implement IDispatch - so you may be forced to call your object from comtypes. There is a comtypes mailing list (which I don't have on hand) that is probably better suited for comtypes assistance.

Re: [python-win32] Finding users home directories

2008-01-13 Thread Mark Hammond
> it's possible, but not slick. If you wanted to follow their > line and use WMI to access the registry, you could additionally > use the WMI Win32_UserAccount class to work out the SID you need. > For example, to find my profile on this machine, the following > seems to work: > > (uses the wmi mo

[python-win32] Defining GUIDs and passing them as parameters

2008-01-13 Thread Chris Meredith
Greetings. I'm writing a UI Automation client and needing to define GUIDs as constants, as well as pass them as parameters. Sadly, I come from a C++/C# background, and can't remember just precisely what library handles GUIDs (I'm assuming comtypes?). -C- __

Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Henry Baxter
Thanks for the tip, venster not only has a neat way to resolve this issue, but plenty of other really useful things (lists of windows constants and other stuff that take time to assemble). On Jan 13, 2008 4:03 AM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Henry Baxter schrieb: > > Problem solved

Re: [python-win32] Custom control, WS_CHILD

2008-01-13 Thread Thomas Heller
Henry Baxter schrieb: > Problem solved! > > I was using ctypes.byref to pass a reference to the window class, but before > calling CreateWindow the window class in question went out of scope and was > destroyed. > > I'm worried this type of problem will happen more often, but I'm not sure > how t

Re: [python-win32] Finding users home directories

2008-01-13 Thread James Matthews
I guess that would help! :) On Jan 12, 2008 11:50 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > 2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > > > 2008/1/12, Giampaolo Rodola' <[EM