ITaskFolder :: CreateFolder方法的安全描述符参数 [英] Security descriptor argument for ITaskFolder::CreateFolder method

查看:326
本文介绍了ITaskFolder :: CreateFolder方法的安全描述符参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 ITaskFolder :: CreateFolder 方法。



我想知道这个方法的安全描述符参数是什么?到目前为止,我无法弄清楚这个论点的任何安全变体。



在msdn上搜索我发现安全描述符并尝试以下代码,



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,

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





函数失败并返回E_INVALIDARG。



请帮帮我有这个问题。



the function fails and returns E_INVALIDARG.

Please help me with this problem.

推荐答案

最好使用C:\ Windows \ System32 \ tasks中的CreateDirectory()方法创建目录。
It is better to create the directory by using the method CreateDirectory() in "C:\Windows\System32\tasks".


只是试图让线程保持活动状态。
Just trying to keep the thread active.


这篇关于ITaskFolder :: CreateFolder方法的安全描述符参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆