Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - UAC Timeout ?!?

Reply
 
Old 09-22-2008   #1 (permalink)
Sven K


 
 

UAC Timeout ?!?

I start a process per:

ProcessStartInfo si = new ProcessStartInfo("Task.exe");
si.Verb = "runas";
Process p = Process.Start(si);

On Execution the UAC dialog will be displayed.
If the user selects nothing for two minutes, this dialog will be closed.
The win32exception error code is -2147467259 on this timeout AND on user
“cancel” selection.

Is the any way to know -> what is happened (cancel or timeout)?
Or could I disable this timeout anyway?





My System SpecsSystem Spec
Old 10-08-2008   #2 (permalink)
Jan Hyde (VB MVP)


 
 

Re: UAC Timeout ?!?

Sven K <kuehne@xxxxxx(donotspam)>'s wild thoughts were
released on Mon, 22 Sep 2008 05:56:02 -0700 bearing the
following fruit:
Quote:

>I start a process per:
>
> ProcessStartInfo si = new ProcessStartInfo("Task.exe");
> si.Verb = "runas";
> Process p = Process.Start(si);
>
>On Execution the UAC dialog will be displayed.
>If the user selects nothing for two minutes, this dialog will be closed.
>The win32exception error code is -2147467259 on this timeout AND on user
>cancel selection.
>
>Is the any way to know -> what is happened (cancel or timeout)?
>Or could I disable this timeout anyway?
I'm curious to know why it matters, surely its all the same
to your program?

--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
My System SpecsSystem Spec
Old 10-23-2008   #3 (permalink)
Sven K


 
 

Re: UAC Timeout ?!?

Its a usabillity issue for me.
I would not like to cancel my process on a 2 minutes timout.

I get a workaround by support. It is simple, not very nice but works for me.

I have to check the time from process start till exception. If time is less
then 120s it is a user abort else it is an timeout.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Command Timeout .NET General
WebService and Timeout .NET General
Anyway to timeout a command PowerShell
pipeline timeout PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46