ZD Screen Recorder SDK API – ScnLib_SaveSettings()

ScnLib_SaveSettingsA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) BOOL __stdcall ScnLib_SaveSettingsA(HKEY hKey, LPCSTR pcszSubKey);
__declspec(dllimport) BOOL __stdcall ScnLib_SaveSettingsW(HKEY hKey, LPCWSTR pcwszSubKey);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern bool ScnLib_SaveSettingsW(IntPtr RegKey, string SubKey);
Basic Public Declare Unicode Function ScnLib_SaveSettingsW Lib "ScnLib.dll" (ByVal RegKey As IntPtr, ByVal SubKey As String) As Boolean
Delphi function ScnLib_SaveSettingsA(RegKey: THandle; const SubKey: PAnsiChar): LongBool; stdcall; external 'ScnLib.dll'; function ScnLib_SaveSettingsW(RegKey: THandle; const SubKey: PWideChar): LongBool; stdcall; external 'ScnLib.dll';
  • Description
    Save the current SDK settings to the Windows registry.

  • Parameters
    • RegKey [in]
      A handle to a currently open key or any of the following predefined keys:
      • HKEY_CURRENT_USER
      • HKEY_LOCAL_MACHINE
      On systems with Windows User Account Control (UAC) activated (which is the default setting from Windows Vista onwards), setting HKEY_LOCAL_MACHINE as the RegKey requires your program to have administrator privileges to write entries to this registry key.
    • SubKey [in]
      The sub-key under the RegKey from which you wish to save the SDK settings to the Windows registry. To save to the SDK’s default sub-key, pass a zero value or an empty string.
  • Return Value
    If the SDK settings are saved successfully, the return value is TRUE. Otherwise, the return value is FALSE.

  • Remarks
    Use this function to save the current SDK settings to the Windows registry. The SDK settings saved can be retrieved later by invoking ScnLib_LoadSettingsA/W(). The SDK offers numerous settings that can be programmatically modified to suit your needs. This function is commonly used to preserve the SDK settings through program restarts.

  • See Also
    ScnLib_LoadSettingsA/W()
    ScnLib_DeleteSettingsA/W()
    ScnLib_ConfigureSettings()

Shopping Cart
  • Your cart is empty.
Scroll to Top