/************************************************************************* * Auto-Pro functions and structures definitions for image-pro database module. * * IMPORTANT: this file is parsed to generate the DBIPC.H file. Only use * variables types that are defined in the AWK script. Use short instead * of int, LPVOID or LPSHORT instead of void far * or short far *. * *************************************************************************/ #include "ipcerr.h" #ifdef __cplusplus extern "C" { /* Assume C declarations for C++ */ #endif /* __cplusplus */ /* IpDbSearch */ #define OP_EQUAL 0 #define OP_LT 1 #define OP_LE 2 #define OP_GT 3 #define OP_GE 4 #define OP_LIKE 5 #define OP_NOTLIKE 6 #define DB_INT 0 #define DB_LONG 1 #define DB_STRING 2 #define DB_BINARY 3 #define DB_MEMO 4 #define DB_FILE 5 #define DB_CAPTION 21 #define DB_COPYCUSTOM 22 /* IpDbGoto */ #define DB_FIRST -1 #define DB_LAST -2 #define DB_NEXT -3 #define DB_PREV -4 IPCFUNC IpDbWrite(LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbRead(LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbGoto(short RecordNum); IPCFUNC IpDbSearch(LPSTR szFieldName, short FieldType, short Operator, LPVOID FieldValue); IPCFUNC IpDbFind(LPSTR szFieldName, short FieldType, short Operator, LPVOID FieldValue); IPCFUNC IpDbViewFolder(LPSTR szFolderName); IPCFUNC IpDbViewAll(); IPCFUNC IpDbLoadView(LPSTR szViewName); IPCFUNC IpDbNewFolder(LPSTR szFolderName, LPSTR szDescription); IPCFUNC IpDbOpenFolder(LPSTR szFolderName); IPCFUNC IpDbPrint(short sLayout); IPCFUNC IpDbAddField(LPSTR szFieldName, short FieldType, short FieldLength); IPCFUNC IpDbSetAttr(short Attrib, short nValue, LPSTR strValue); /* not in Auto-Pro yet */ IPCFUNC IpDbWriteNum(LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbReadNum(LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbIsRunning (void); IPCFUNC IpDbStart (BOOL bShow); IPCFUNC IpDbStop (void); IPCFUNC IpDbOpen (LPSTR szFileName); IPCFUNC IpDbClose (void); IPCFUNC IpDbRegisterApp (LONG lAppID); IPCFUNC IpDbUnregisterApp (LONG lAppID); IPCFUNC IpDbGetAppID (LPSTR szTable); IPCFUNC IpDbGetAppItemID (LONG lAppID); IPCFUNC IpDbCreateAppItem (LONG lAppID); IPCFUNC IpDbDeleteAppItem (LONG lAppID, LONG lItemID, BOOL bDeleteRecords); IPCFUNC IpDbShowAppSearch (LONG lAppID); IPCFUNC IpDbAddAppRecord (LONG lAppID, LONG lItemID, LPSTR szFileName); IPCFUNC IpDbGetAppRecords (LONG lAppID, LONG lItemID, LPSTR szBuffer, LONG DataLength); IPCFUNC IpDbWriteAppItem (LONG lAppID, LONG lItemID, LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbReadAppItem (LONG lAppID, LONG lItemID, LPSTR szFieldName, short FieldType, LPVOID szFieldValue, long DataLength); IPCFUNC IpDbGetActive (LPSTR szDatabaseName, LPSTR szFolderName); #ifdef __cplusplus } #endif /* __cplusplus */