internal static FileHandle OpenFile(string filePath, TDMFileTypes fileType = TDMFileTypes.TDM, bool readOnly = false)
        {
            DDCFileHandle handle = default(DDCFileHandle);

            CheckReturnCode(
                DDC_OpenFileEx(filePath, fileType.GetStringConstant(), readOnly ? 1 : 0, ref handle)
                );
            return(new FileHandle(handle));
        }
        internal static FileHandle CreateFile(string path,
                                              TDMFileTypes fileType,
                                              string name,
                                              string description,
                                              string title,
                                              string author)
        {
            DDCFileHandle fileHandle = default(DDCFileHandle);

            CheckReturnCode(
                DDC_CreateFile(path, fileType.GetStringConstant(), name, description, title, author, ref fileHandle)
                );
            return(new FileHandle(fileHandle));
        }