关于WindowsOs的sddl.h头文件

G-ben 2015-04-06 08:23:35
请问
sddl.h头文件的函数说明 去哪里找呢
如果可以的话,最好直接给链接
thanks as extraordinary
...全文
283 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2015-04-07
  • 打赏
  • 举报
回复
查MSDN是Windows程序员必须掌握的技能之一。 ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.chs/secauthz/security/convertstringsecuritydescriptortosecuritydescriptor.htm ConvertStringSecurityDescriptorToSecurityDescriptor Function The ConvertStringSecurityDescriptorToSecurityDescriptor function converts a string-format security descriptor into a valid, functional security descriptor. This function retrieves a security descriptor that the ConvertSecurityDescriptorToStringSecurityDescriptor function converted to string format. BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptor( __in LPCTSTR StringSecurityDescriptor, __in DWORD StringSDRevision, __out PSECURITY_DESCRIPTOR* SecurityDescriptor, __out PULONG SecurityDescriptorSize ); Parameters StringSecurityDescriptor A pointer to a null-terminated string containing the string-format security descriptor to convert. StringSDRevision Specifies the revision level of the StringSecurityDescriptor string. Currently this value must be SDDL_REVISION_1. SecurityDescriptor A pointer to a variable that receives a pointer to the converted security descriptor. The returned security descriptor is self-relative. To free the returned buffer, call the LocalFree function. To convert the security descriptor to an absolute security descriptor, use the MakeAbsoluteSD function. SecurityDescriptorSize A pointer to a variable that receives the size, in bytes, of the converted security descriptor. This parameter can be NULL. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. GetLastError may return one of the following error codes. Return code Description ERROR_INVALID_PARAMETER A parameter is not valid. ERROR_UNKNOWN_REVISION The SDDL revision level is not valid. ERROR_NONE_MAPPED A security identifier (SID) in the input security descriptor string could not be found in an account lookup operation. Remarks If ace_type is ACCESS_ALLOWED_OBJECT_ACE_TYPE and neither object_guid nor inherit_object_guid has a GUID specified, then ConvertStringSecurityDescriptorToSecurityDescriptor converts ace_type to ACCESS_ALLOWED_ACE_TYPE. For information about the ace_type, object_guid, and inherit_object_guid fields, see Ace Strings. Requirements Client Requires Windows Vista, Windows XP, or Windows 2000 Professional. Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server. Header Declared in Sddl.h. Library Use Advapi32.lib. DLL Requires Advapi32.dll. Unicode Implemented as ConvertStringSecurityDescriptorToSecurityDescriptorW (Unicode) and ConvertStringSecurityDescriptorToSecurityDescriptorA (ANSI). See Also Access Control Overview Basic Access Control Functions ConvertSecurityDescriptorToStringSecurityDescriptor ConvertSidToStringSid ConvertStringSidToSid MakeAbsoluteSD SECURITY_DESCRIPTOR Send comments about this topic to Microsoft Build date: 8/15/2007
707wk 2015-04-06
  • 打赏
  • 举报
回复
http://read.pudn.com/downloads6/sourcecode/windows/system/20883/Sddl.h__.htm

64,696

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧