Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetFormatProgress

### Interface Definition

C++C#

    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