Share via


TABLESCHEMA structure

Do not use. Describes the schema of a database table.

Syntax

typedef struct tagTABLESCHEMA {
  LPVOID           pReserved;
  DWORD            cbBinding;
  DWORD            ofMemory;
  DWORD            ofVersion;
  DWORD            dwReserved;
  TABLESCHEMAFLAGS dwFlags;
  DWORD            cbUserData;
  DWORD            ofUniqueId;
  BYTE             cColumns;
  LPCTABLECOLUMN   prgColumn;
  LPCTABLEINDEX    pPrimaryIndex;
  LPCSYMBOLTABLE   pSymbols;
} TABLESCHEMA, *LPTABLESCHEMA;

Members

pReserved

Type: LPVOID

A reserved field.

cbBinding

Type: DWORD

The size of a record that will be stored in the database.

ofMemory

Type: DWORD

Each record must contain a member reserved for the database. This member must be large enough to store a pointer and must not be modified by the caller in any record. ofMemory must be the offset into the record of that column.

ofVersion

Type: DWORD

All records must contain a BYTE that the database uses to store a version number. Set ofVersion to the offset, in bytes, of that struct member.

dwReserved

Type: DWORD

A reserved field for the minor version.

dwFlags

Type: TABLESCHEMAFLAGS

Can be set to one of the values of TABLESCHEMAFLAGS.

cbUserData

Type: DWORD

Specifies the number of bytes in the UserData that will be set using SetUserData. Must be the same value as cbUserData passed to SetUserData.

ofUniqueId

Type: DWORD

Specifies the location of the primary key inside of a record for this database. This is specified as an offset in bytes from the beginning of a record.

cColumns

Type: BYTE

Number of columns in a record.

prgColumn

Type: LPCTABLECOLUMN

Should point to an array of TABLECOLUMN structures specifying the columns of the database.

pPrimaryIndex

Type: LPCTABLEINDEX

The primary index for the table.

pSymbols

Type: LPCSYMBOLTABLE

The array of symbols for this table.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0