Click here to Skip to main content
15,886,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to create a folder in Task Scheduler under the root folder using ITaskFolder::CreateFolder method.

I'm wondering what is the security descriptor argument for this method? So far I can't figure out any security variant for this argument.

Searching on msdn I found Security Descriptor and tried the following code,

C#
VARIANT v;
V_VT(&v) = VT_BSTR;
V_BSTR(&v) = SysAllocString(L"O:WDG:WD");


the function fails and returns E_INVALIDARG.

Please help me with this problem.
Posted

It is better to create the directory by using the method CreateDirectory() in "C:\Windows\System32\tasks".
 
Share this answer
 
Just trying to keep the thread active.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900