Re: [python-win32] Vista, _winreg and "Access denied"

2008-06-06 Thread Mark Hammond
> The application as to re-run itself using ShellExecute so it has to > know > if it already runs elevated or not. > > To do this I must use : > GetTokenInformation( > hToken, > TokenElevationType > ) What about: >>> from win32com.shell

Re: [python-win32] Vista, _winreg and "Access denied"

2008-06-06 Thread Tim Golden
le dahut wrote: To complete this, the application is launched at logon (via Userinit registry key). It rewrites paths to StartMenu and Desktop according to the type of logon (Domain or Local). Actually it only rewrites when it is a local session and user IsAnAdmin. The application as to re-run

Re: [python-win32] Vista, _winreg and "Access denied"

2008-06-06 Thread le dahut
To complete this, the application is launched at logon (via Userinit registry key). It rewrites paths to StartMenu and Desktop according to the type of logon (Domain or Local). Actually it only rewrites when it is a local session and user IsAnAdmin. The application as to re-run itself using Shel