[python-win32] Custom control, WS_CHILD

2008-01-12 Thread Henry Baxter
Hello, I have been doing some win32 programming using ctypes. I have successfully created windows, common controls, manipulated and shown images, and so forth. However, I am having trouble with custom controls. I can create a new window class, successfully register it, then successfully create a

[python-win32] Finding users home directories

2008-01-12 Thread Giampaolo Rodola'
Hi, I'm trying to use the pywin32 extension to find out the users home directories. Currently I found a way for doing that but it requires to validate the user by providing its username + password: def get_homedir(username, password): token = win32security.LogonUser( username, Non

Re: [python-win32] Finding users home directories

2008-01-12 Thread Tim Golden
Giampaolo Rodola' wrote: > I'm trying to use the pywin32 extension to find out the users home > directories. > Currently I found a way for doing that but it requires to validate the > user by providing its username + password: > > def get_homedir(username, password): >token = win32security.Lo

Re: [python-win32] Finding users home directories

2008-01-12 Thread Guilherme Polo
2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > Hi, > I'm trying to use the pywin32 extension to find out the users home > directories. > Currently I found a way for doing that but it requires to validate the > user by providing its username + password: > > def get_homedir(username, password):

Re: [python-win32] Finding users home directories

2008-01-12 Thread Giampaolo Rodola'
2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > 2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > > Hi, > > > I'm trying to use the pywin32 extension to find out the users home > > > directories. > > > Currently I found a way for doing tha

Re: [python-win32] Finding users home directories

2008-01-12 Thread Guilherme Polo
2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > 2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > > > Hi, > > > > I'm trying to use the pywin32 extension to find out the users home >

Re: [python-win32] Finding users home directories

2008-01-12 Thread Giampaolo Rodola'
2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > > 2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > > > > 2008/1/12, Giampaolo Rodola' <[EMAIL PROTECTED]>: > > > > > Hi, > > > > > I'm trying

Re: [python-win32] Finding users home directories

2008-01-12 Thread Guilherme Polo
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]>: > > > > 2008/1/12, Guilherme Polo <[EMAIL PROTECTED]>: > > > > > 2008/1/12, Giampaolo Rodo

Re: [python-win32] Custom control, WS_CHILD

2008-01-12 Thread Henry Baxter
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 it...suggestions welcome! Hen