The global mask repository is stored in a text file called CustomMask.kwd. The file is located under the system common application data folder (i.e. CSIDL_COMMON_APPDATA). The location of this folder is different for different operating systems and different versions of DataFlex. For example under Windows Vista the file path would be…
C:\ProgramData\Data Access Worldwide\DataFlex\{version}\Studio Data\CustomMask.kwd
The location of the common application data folder on your operating system can be determined programmatically by calling the SHGetFolderPath Windows API function.