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
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
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
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):
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
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
>
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
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
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