AfxRegDeletefunction
Deletes a key or one of its values from the registry.
Syntax
FUNCTION AfxRegDelete (BYREF wszKey AS WSTRING) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
wszKey | String value indicating the name of the registry key or key value you want to delete. |
Return value
Returns S_OK or an HRESULT error code.
Description
Deletes a key or one of its values from the registry.
Example
AfxRegDelete("HKCU\Software\ACME\FortuneTeller\MindReader") AfxRegDelete("HKCU\Software\ACME\FortuneTeller\") AfxRegDelete("HKCU\Software\ACME\")
Reference
- Defined in AfxNova/AfxWsh.inc:105
- Documented in Windows/Windows Script/Windows Shell.md
- Topic: Windows Shell