ITaskScheduler::NewWorkItem returns E_ACCESSDENIED while attempting to create task under same name
According to the Microsoft docs, the error code ERROR_FILE_EXISTS should be returned when attempting to create a task that already exists. However, when I run the sample program to create a task more than once, I receive the error code E_ACCESSDENIED instead.