task scheduler problem as a power user on windows server 2003
From: Warren (wfp2a_at_yahoo.com)
Date: 04/20/04
- Next message: Christian: "Re: XP home setup can't format parition"
- Previous message: Kobi: "Re: Remote sessions promptly disconnected"
- Messages sorted by: [ date ] [ thread ]
Date: 20 Apr 2004 08:23:33 -0700
Hi everyone,
I am having trouble with the code shown below when I try to run logged
in as a power user on a windows server 2003 machine. It runs fine as
an admin user on 2003 and it runs fine as power user or admin on win
xp pro. I also noticed that I cannot open the Scheduled Tasks item
from the control panel when I am logged in as a power user on server
2003. I have seen various posts related to the task scheduler but
nothing seems to clearly answer whether this functionality is by
design in the system and whether there is any way to get around the
situation. Also, does anyone know whether Win XP will be headed in
this direction in the future (via some service pack maybe?) or are we
safe with current functionality? Thanks so much for your help.
Warren
ITaskScheduler* pITaskScheduler = 0;
if (SUCCEEDED(hr = CoCreateInstance(CLSID_CSchedulingAgent,NULL,CLSCTX_INPROC_SERVER,
IID_ITaskScheduler, (void**)&pITaskScheduler)))
{
//I get to here successfully...
IEnumWorkItems* pIEnumWorkItems;
if (FAILED(pITaskScheduler->Enum(&pIEnumWorkItems)))
{
//it always fails when I am a power user
//and comes into here
// Release it
pITaskScheduler->Release();
pITaskScheduler = NULL;
return E_FAIL;
}
//do some stuff
}
- Next message: Christian: "Re: XP home setup can't format parition"
- Previous message: Kobi: "Re: Remote sessions promptly disconnected"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|