[python-win32] GetWindowsVersion on Longhorn

2009-01-22 Thread Matt Herbert (matherbe)
Hey all, Just wondering if there is a way to differentiate Windows Server 2008 from Windows Vista? All the normal methods I would use aren't cutting it. For instance, sys.getwindowsversion() and platform.uname() are returning exactly the same thing for Vista and Windows 2008. Any Ideas? Thanks

[python-win32] Getting a users token

2008-10-24 Thread Matt Herbert (matherbe)
Hey all, Anybody know how to get a token for the current user? I'm thinking something similar to win32api.GetUserName, but instead it would return the token?? -Matt ___ python-win32 mailing list [email protected] http://mail.python.org/mailman/li

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Matt Herbert (matherbe)
ts > Sent: Friday, October 24, 2008 2:41 PM > To: Python-Win32 List > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista > > Matt Herbert (matherbe) wrote: > > Steven, > > > > Thanks, I will give this a try. > > > > So then

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Matt Herbert (matherbe)
ct 22, 2008 at 2:25 PM, Matt Herbert (matherbe) <[EMAIL PROTECTED]> wrote: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:python-win32-bounces+matherbe <mailto:python-win32-bounces%2Bmat

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Tim Roberts > Sent: Wednesday, October 22, 2008 1:48 PM > To: Python-Win32 List > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista >

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Tim Golden > Sent: Wednesday, October 22, 2008 10:21 AM > Cc: [email protected] > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista >

[python-win32] Interacting with the desktop as a service on Vista

2008-10-21 Thread Matt Herbert (matherbe)
Hey all, So I have a service that needs to interact with the desktop on a Vista machine. I've read multiple articles about Vista's updated security and it's restrictions on services. So I realize that in order for the service to interact with desktop, I'm going to need to create a new process as

[python-win32] CAPICOM on Vista 64

2008-07-15 Thread Matt Herbert (matherbe)
Hey all, I'm using python 2.6b1.amd64 and pywin32-211.win-amd64 on my 64 bit vista system. I am trying to access the CAPICOM COM library through win32com.client. However, every time I try to load it through the Dispatch method I get the following error: >>> win32com.client.Dispatch('CAPICOM.Stor

[python-win32] win32com Dispatch and userName

2008-01-09 Thread Matt Herbert (matherbe)
Hey all, Can anyone tell me what the userName argument is used for when calling win32com.client.Dispatch? Thanks -Matt ___ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
> -Original Message- > Tim Roberts wrote: > > Matt Herbert (matherbe) wrote: > > Is there a way to make impersonation follow threads? > > What operating system are you running? On XP SP2 and later, a new > thread should inherit the impersonation token of th

[python-win32] Impersonation and Threads

2008-01-08 Thread Matt Herbert (matherbe)
Hey all, Is there a way to make impersonation follow threads? Given this simple example: import win32api import win32security import win32con from threading import Thread class Test(Thread): def run(self): print "Username (in thread): ", win32api.GetUserName() print "Username (befo

Re: [python-win32] Logging off of windows

2007-11-13 Thread Matt Herbert (matherbe)
TED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roger Upole > Sent: Sunday, November 11, 2007 1:21 AM > To: [email protected] > Subject: [python-win32] Logging off of windows > > Matt Herbert wrote: > > > > Hello all, > > > > I'm having a litt

[python-win32] Logging off of windows

2007-11-09 Thread Matt Herbert (matherbe)
Hello all, I'm having a little problem figuring how I can tell if there is anybody currently logged into windows at the desktop. More specifically, I am initiating a logoff via the ExitWindowsEx() function and, as we all know, it can sometimes take a little bit for the logoff to actually complete

Re: [python-win32] Automating logon/logoff

2007-11-09 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matt > Herbert (matherbe) > Sent: Wednesday, October 17, 2007 11:02 AM > > I am stumped trying to figure out how I can automate the login/logoff > procedure on Windows. >

Re: [python-win32] Automating logon/logoff

2007-10-18 Thread Matt Herbert (matherbe)
> -Original Message- > From: Tim Golden [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 18, 2007 3:07 AM > To: Matt Herbert (matherbe) > Cc: [email protected] > Subject: Re: [python-win32] Automating logon/logoff > > Matt Herbert (matherbe) wrote: &

Re: [python-win32] Automating logon/logoff

2007-10-18 Thread Matt Herbert (matherbe)
> > Thomas, > Wooops, I meant to say Tim. Sorry bout that. -Matt ___ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Automating logon/logoff

2007-10-18 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Larry Bates > Sent: Wednesday, October 17, 2007 7:34 PM > To: [email protected] > Subject: Re: [python-win32] Automating logon/logoff > > Matt Herbert (mather

[python-win32] Automating logon/logoff

2007-10-17 Thread Matt Herbert (matherbe)
Hello all, I am stumped trying to figure out how I can automate the login/logoff procedure on Windows. Here is what I know so far. First, I can logoff the system pretty easily using win32api.ExitWindowsEx() function. Second, I can auto logon the system (after a reboot) using the special registry

Re: [python-win32] Network Bindings

2007-09-28 Thread Matt Herbert
Tim Golden wrote: > OK, I'm not entirely sure what "bindings on a network adapter are". Network Bindings are simply a list of Clients, Protocols, and Services that can be bound to particular adapters in particular orders. This is most easily visualized by brining up your Network Connections cont

[python-win32] Network Bindings

2007-09-28 Thread Matt Herbert
Hello all, I've been trying to figure out how to change the bindings on a network adapter. I've used Google extensively and haven't found anything useful (or I haven't been searching for the right things). What I have found, leads me to believe that the only way to do this is via the INetCfg