OpusRegDeleteKeyW(
     OPUSREGKEY:phKey,
     LPCWSTR:lpSubKey
)
→ LONG

Arguments

phKey

[in] The parent key to delete. This must be a valid key returned by OpusRegCreateKeyW or OpusRegOpenKeyW.

lpSubKey

[in] Path of sub-key to delete, or NULL to delete the parent key.

Return value

Returns ERROR_SUCCESS if successful or an error code on failure.

Description

The OpusRegDeleteKeyW function is used to delete a key from the registry.

The specified key and all its sub-keys are recursively deleted.