title: CoCreateInstance failed error 80040154 in Win 2003
body: <p>I got error "Failed to create an instance of ITaskService: <strong>80040154</strong>" when i call the function <strong>CoCreateInstance</strong> with <strong>CLSID_TaskSchedule</strong> and <strong>IID_ITaskService</strong>.</p>
  
  <p>I am using ITaskService interface for creating the scheduled task.<strong>Same appln works fine in Win7 but failed in Win2003</strong>.</p>
  
  <pre><code> ITaskService *pService = NULL;
  hr = CoCreateInstance( CLSID_TaskScheduler,
                         NULL,
                         CLSCTX_INPROC_SERVER,
                         IID_ITaskService,
                         (void**)&amp;pService ); 
  </code></pre>
  
  <p>Is this ITaskService interface support only Win7/Server 2k8 R2 OR else it support all Windows platfor?</p>
  
  <p>Thanks in aadvance.</p>