I am trying to use the new Microsoft Scheduling Agent API as demonstrated in their sa.cpp sample code. I'm using VC++ 6.0 and the Sept 98 version of the Platform SDK. I'm running NT Server 4.0 with Service Pack 3.
It compiles put when I run it returns -2147221164 which is really 0x80040154 CLASS_NOT_REGISTERED.
It happens HERE...
hr = CoCreateInstance(
(void **) &g_pITaskScheduler);
It seems to me CLSID_CTaskScheduler is not a registered class, but I'm struggling trying to figure out how to do this. The info I've found in the MSDN doesn't make sense ("If you run the REGEDT32.EXE program with the Win32 SDK...)
What the heck does that mean?
I can go into the registry under HKEY_CLASSES_ROOT and see there is NOT an subkey labeled CLSID, but don't know how to create it.
Looking for guidance.