Jump to main content

##

# 1.1.3.4.19 DRV_MEMORY_IsWriteProtected Function

## C

    bool DRV_MEMORY_IsWriteProtected
    (
        const DRV_HANDLE handle
    );

## Summary

Returns the write protect status of the Memory.

## Description

This function returns the write protect status of the Memory.

## Precondition

The DRV_MEMORY_Open() routine must have been called to obtain a valid opened device handle.

## Parameters

Param | Description
--- | ---
handle | A valid open-instance handle, returned from the driver's open function

## Returns

True - If the memory is write protected.

False - If the memory is not write protected.

## Example

    bool isWriteProtected;

    isWriteProtected = DRV_MEMORY_IsWriteProtected(drvMEMORYHandle);

## Remarks

None.