Security & Palm OS 5.x
by Michael Yam

Example 1:
      
gPrivateRecordVisualStatus = 
    (privateRecordViewEnum)PrefGetPreference (prefShowPrivateRecords);
if (gPrivateRecordVisualStatus == hidePrivateRecords)
     mode = dmModeReadWrite;
else
     mode = dmModeReadWrite | dmModeShowSecret;	


Example 2: 

typedef enum privateRecordViewEnum {
    showPrivateRecords = 0x00, 
    maskPrivateRecords, 
    hidePrivateRecords
} privateRecordViewEnum;

Example 3:

DmRecordInfo (gMaskedRecDBP, recordNum, &attr, NULL, NULL);
isMasked = (((attr & dmRecAttrSecret) && gPrivateRecordVisualStatus == maskPrivateRecords));
TblSetRowMasked(tableP, row, isMasked);



1

