ScnLib_GetRecTimeStr()

ScnLib_GetRecTimeA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_GetRecTimeA(LPSTR pszTime);
__declspec(dllimport) void __stdcall ScnLib_GetRecTimeW(LPWSTR pwszTime);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_GetRecTimeW(StringBuilder Time);
Basic Public Declare Unicode Sub ScnLib_GetRecTimeW Lib "ScnLib.dll" (ByVal Time As StringBuilder)
Delphi procedure ScnLib_GetRecTimeA(Time: PAnsiChar); stdcall; external 'ScnLib.dll';
procedure ScnLib_GetRecTimeW(Time: PWideChar); stdcall; external 'ScnLib.dll';
  • Description
    Obtain the formatted string of the current recording duration.

  • Parameters
    • Time [out]
      The string buffer allocated to obtain the formatted current recording duration, structured as HH:MM:SS. Ensure the buffer can accommodate more than 11 characters to account for extended durations, which would appear as HHHH:MM:SS.
  • Return Value
    None.

  • Remarks
    Use this function to obtain the formatted string of the current recording duration. The SDK facilitates extended duration screen recordings as it performs screen/sound capturing, video/audio encoding, and file writing in real time, without generating intermediate files. Provided there is adequate free disk space, a single recording session can last up to 100 hours (over 4 days).

  • See Also
    ScnLib_StartRecording()
    ScnLib_PauseRecording()
    ScnLib_ResumeRecording()
    ScnLib_StopRecording()
    ScnLib_GetRecTime()

Try the SDK for FREE SDK APIs overview