Windows Task Scheduler: IAction.QueryInterface() returns an error I cannot find a definition for
Posted
by
Sascha
on Stack Overflow
See other posts from Stack Overflow
or by Sascha
Published on 2011-01-13T00:47:36Z
Indexed on
2011/01/13
0:54 UTC
Read the original article
Hit count: 358
Hello
I am attempting to schedule a task (to open an .exe at a specific time) using C++ win32. But at one specific point I am getting an error, I have searched & searched to try & find the definition of this error but I cannot find it?
Do you know what this error means: Hexadecimal: 80004003 Decimal: 2147500035
I wont post the whole function because its rather long (unless you may need it to determine the error context?).
The code I am using (that causes the error) is the following:
// QI for the executable task pointer.
hr = action -> QueryInterface( IID_IExecAction, (void**) execAction );
action -> Release();
if( FAILED(hr) )
{
printf("QueryInterface call failed for IExecAction: %x %X %u \n", hr, hr, hr );
rootFolder -> Release();
task -> Release();
CoUninitialize();
return false;
}
The output is: QueryInterface call failed for IExecAction: 80004003 80004003 2147500035
© Stack Overflow or respective owner