ZD Screen Recorder SDK API – ScnLib_GetLastError()

ScnLib_GetLastError()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) DWORD __stdcall ScnLib_GetLastError(void);
C# [DllImport("ScnLib.dll")] public static extern uint ScnLib_GetLastError();
Basic Public Declare Function ScnLib_GetLastError Lib "ScnLib.dll" () As UInt32
Delphi function ScnLib_GetLastError(): LongWord; stdcall; external 'ScnLib.dll';
  • Description
    Retrieve the last error code that occurred during the previous SDK API calls.

  • Parameters
    None.

  • Return Value
    The last error code that occurred during the previous SDK API calls. It can be either a standard DWORD error code returned by the Win32 API `::GetLastError()`, or a HRESULT error code returned by a COM method call. You can obtain the corresponding error message for the code using the Win32 API `::FormatMessage()` or the COM class `_com_error`.

  • Remarks
    Use this function to retrieve the last error code that occurred during the previous SDK API calls. Typically, you call this API when the SDK initialization fails or the recording stops unexpectedly. The last error code can be retrieved only once by calling this API. Once it is retrieved, it will be reset to zero until a new error occurs.

  • See Also
    ScnLib_CheckComponents()
    ScnLib_InitializeA/W()
    ScnLib_StartRecording()
    ScnLib_IsRecording()

Shopping Cart
  • Your cart is empty.
Scroll to Top