Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Set Account Information dialog (Task Scheduler 1.0 on Vista SP1)

Reply
Thread Tools Display Modes

Set Account Information dialog (Task Scheduler 1.0 on Vista SP1)

 
 
def0
Guest
Posts: n/a

 
      12-18-2007
I created a task using task scheduler 1.0 interface, following the example in
MSDN, with the following instruction to set the "run only if logger on"
property. The user is the current user and password is null.
spTask->SetFlags(TASK_FLAG_RUN_ONLY_IF_LOGGED_ON);
spTask->SetAccountInformation(xxx, NULL);

After that, I called
spTask->EditWorkItem(hWnd, 0);
to show up a property sheet to let the user change time.

It works properly on XP and Vista, but with Vista SP1, after the user
changed the time and clicked OK, there was a strange "Set Account
Information" dialog box showed up. It was weird because I had already set the
"TASK_FLAG_RUN_ONLY_IF_LOGGED_ON" flag, so the task didn't need to store a
password.

And further more, that dialog doesn't actually do anything, it accept any
user name and password without checking them.

Any suggestion/information is welcome.
Thanks.


 
Reply With Quote
 
 
 
 
def0
Guest
Posts: n/a

 
      12-18-2007
Correct the above post, the dialog box actually CAN change the user of a
task. But it doesn't notice you if you input the wrong password.
 
Reply With Quote
 
def0
Guest
Posts: n/a

 
      12-19-2007
I found on XP/Vista, the dialog only show up if the user name and password
are not set. Once they are set, the dialog won't appears again. But on Vista
SP1, it appears everytime if you modified the task.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler Error Code information? Peter Meinl Windows Vista General Discussion 4 01-27-2009 08:58 PM
Task Scheduler repeat task duration bug? sm02463 Windows Vista General Discussion 4 12-06-2008 06:40 PM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista General Discussion 6 07-11-2007 09:01 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista General Discussion 0 06-07-2007 01:51 AM



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 47 48 49 50 51 52 53 54 55 56 57 58 59