| VB声明 | |
| Declare Function RegSetKeySecurity Lib "advapi32.dll" Alias "RegSetKeySecurity" (ByVal hKey As Long, ByVal SecurityInformation As Long, pSecurityDescriptor As SECURITY_DESCRIPTOR) As Long | |
| 说明 | |
| 设置指定项的安全特性 | |
| 返回值 | |
| Long,零(ERROR_SUCCESS)表示成功。其他任何值都代表一个错误代码 | |
| 参数表 | |
| 参数 | 类型及说明 |
| hKey | Long,指定一个项的句柄,或指定一个标准项名 |
| SecurityInformation | Long,对要保存的信息进行描述的标志 |
| pSecurityDescriptor | SECURITY_DESCRIPTOR,这个结构包含了注册表项新的安全特性设置 |
| 适用平台 | |
Windows NT |
|