UAC Timeout ?!?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U3ZlbiBL?=

    UAC Timeout ?!?

    I start a process per:

    ProcessStartInf o si = new ProcessStartInf o("Task.exe") ;
    si.Verb = "runas";
    Process p = Process.Start(s i);

    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?




  • Jan Hyde (VB MVP)

    #2
    Re: UAC Timeout ?!?

    Sven K <kuehne@rheotec .de.(donotspam) >'s wild thoughts were
    released on Mon, 22 Sep 2008 05:56:02 -0700 bearing the
    following fruit:
    >I start a process per:
    >
    ProcessStartInf o si = new ProcessStartInf o("Task.exe") ;
    si.Verb = "runas";
    Process p = Process.Start(s i);
    >
    >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)


    Comment

    • =?Utf-8?B?U3ZlbiBL?=

      #3
      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.


      Comment

      Working...