Skip to content

Instantly share code, notes, and snippets.

@Shauren
Last active March 15, 2018 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shauren/5182e6bcd312b5035daf1514523d86e4 to your computer and use it in GitHub Desktop.
Save Shauren/5182e6bcd312b5035daf1514523d86e4 to your computer and use it in GitHub Desktop.
db2meta
struct DB2MetaUniqueIndex
{
DWORD ColumnIndex;
DWORD UnkDword2;
DWORD UnkDword3;
};
struct DB2Meta
{
char const* Name;
DWORD FieldCount;
DWORD RecordSize;
DWORD hotFixFieldCount;
DWORD IdFieldOffset;
DWORD sparseTable;
DWORD* hotFixFieldOffsets;
DWORD* hotFixFieldSizes;
DWORD* hotFixFieldTypes;
DWORD* hotFixFieldFlags;
DWORD* FieldSizes;
DWORD* FieldTypes;
DWORD* FieldFlags;
DWORD UnkDword5;
DWORD TableHash;
DWORD UnkDword6;
DWORD LayoutHash;
DWORD UnkDword7;
DWORD nbUniqueIdxByInt;
DWORD nbUniqueIdxByString;
DB2MetaUniqueIndex* UniqueIdxByInt;
DB2MetaUniqueIndex* UniqueIdxByString;
DWORD HasParentLookup;
DWORD ParentIdColumn;
DWORD ParentIdHotfixColumn;
bool(*CompareFunc)(void*, void*); // __cdecl in x86, not checked in x64 win, not checked mac
char const* TableName;
char const* const* FieldNames;
char const* const* hotFixFieldNames;
char const* QueryFilter;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment