OpusRegCheckElevation(
OPUSREGKEY:phKey,
HWND:hWnd
)
→ LONG
The following values may be returned:
| OPUSREG_ELEVATIONCANCELLED | Elevation was required, but the user cancelled the UAC dialog (or hWnd was set to NULL) |
| OPUSREG_ELEVATED | Elevation was required and successfully obtained |
| OPUSREG_ELEVATIONNOTNEEDED | Elevation is not required to write to this registry key |
The OpusRegCheckElevation function lets you check if elevation is required to write to an open registry key under Windows Vista. If elevation is needed the UAC elevation dialog is automatically displayed.
Writing to the registry is discouraged for plugins - this function is provided to make it easier for you to convert existing registry-based plugin configuration data to new-style XML configuration data.