RegSetKeySecurity |
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)表示成功。其他任何值都代表一個錯誤代碼 |
|
參數(shù)表 |
|
參數(shù) |
類型及說明 |
hKey |
Long,指定一個項的句柄,或指定一個標準項名 |
SecurityInformation |
Long,對要保存的信息進行描述的標志 |
pSecurityDescriptor |
SECURITY_DESCRIPTOR,這個結(jié)構(gòu)包含了注冊表項新的安全特性設置 |
適用平臺 |
|
Windows NT |
Top |