Skip to content

NET_SDK_GetFormatProgress

Interface Definition

1
2
3
4
5
BOOL NET_SDK_GetFormatProgress(
    POINTERHANDLE lFormatHandle,
    LONG* pCurrentFormatDisk,
    LONG* pCurrentDiskPos,
    LONG* pFormatStatic);
1
2
3
4
5
public static extern bool NET_SDK_GetFormatProgress(
    POINTERHANDLE lFormatHandle,
    ref int currentDisk,
    ref int percent,
    ref int status);

Function Description

Get the progress of formatting the hard disk (only supports 3.0DVR).

Parameter Description

Parameters Type Remark
lFormatHandlein POINTERHANDLE Format hard disk handle, the return value of NET_SDK_FormatDisk.
pCurrentFormatDiskout LONG* A pointer to the hard disk number currently being formatted. The hard disk number starts from 0 and -1 is the initial state.
pCurrentDiskPosout LONG* Pointer to the progress of the hard disk currently being formatted, the progress is 0 to 100.
pFormatStaticout LONG* Pointer to the hard disk formatting status, 0-formatting in progress; 1-all hard disks formatted; 2-an error occurred while formatting the current hard disk, and the hard disk cannot be formatted any further. This error occurs for both local and network hard disks; 3-the current hard disk cannot be formatted because the network hard disk is lost due to a network anomaly.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code