获取文件夹的安全描述符。
语法
HRESULT GetSecurityDescriptor(
[in] LONG securityInformation,
[out] BSTR *pSddl
);
参数
[in] securityInformation
来自SECURITY_INFORMATION的安全信息。
[out] pSddl
文件夹的安全描述符。
返回值
如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 | Windows Vista [仅限桌面应用] |
| 最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] |
| 目标平台 | Windows |
| 标头 | taskschd.h |
| Library | Taskschd.lib |
| DLL | Taskschd.dll |