| VB声明 | |
| Declare Function RegUnLoadKey Lib "advapi32.dll" Alias "RegUnLoadKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long | |
| 说明 | |
| 卸载指定的项以及它的所有子项 | |
| 返回值 | |
| Long,零(ERROR_SUCCESS)表示成功。其他任何值都代表一个错误代码 | |
| 参数表 | |
| 参数 | 类型及说明 |
| hKey | Long,HKEY_LOCAL_MACHINE、HKEY_USERS或者用RegConnectRegistry打开的一个子项 |
| lpSubKey | String,要卸载的子项的名字。必须是早先用RegLoadKey函数载入的 |