<< mod: split from http://cboard.cprogramming.com/showthread.php?t=77802 >>
I tried this code
but the call of 'pITaskTrigger->SetTrigger(&trigger)'
returns the error
Any ideas why?
I'm using Visual C++ 6 and Windows 2003 Server
setting trigger.cbTriggerSize to
makes the code work. I have no idea why
Last edited by Salem; 12-20-2007 at 07:29 AM.
Reason: Split bump from dead thread - see the rules.
Don't get yourself in trouble - stick to this thread....
Are you absolutely sure that using "sizeof(TASK_TRIGGER)+2" makes it "work"? Because the size of that structure has not changed when comparing the version that ships with VC 6.0 (which is extremely old) and the Windows Server 2003 R2 Platform SDK.