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' [EMAIL PROTECTED]:
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 to stop
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!
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-
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 module
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.
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 work:
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