void setReadOnly(cdbfapiPlus* handle, BOOL value);

The function setReadOnly() forces the library to open files in read-only mode. It is useful if you do not want to modify your file accidenatly.
The function isReadOnly() allows you to get current mode.
You have to call setReadOnly before openning a file.

BOOL isReadOnly(cdbfapiPlus* handle);


{
    cdbfapiPlus* dbf = cdbfapiCreate();
    if (!dbf) return;
    setReadOnly(dbf, TRUE);
    if (openDBFFile(dbf, "c:\\tmp\\example.dbf"))
    {
        // your code
        closeDBFFile(dbf);
    }
    cdbfapiRelease(dbf);
}