| HSym | Type (Structure)

dialogs.h, files.h, graphing.h, vat.h, unknown.h

typedef struct {

| HANDLE folder;

| unsigned short offset;

} HSym;

A structure representing a symbol reference.

HSym is a structure which contains the handle of the variable table list belonging to the folder in which the symbol is located, and the offset from the beginning of the list to the actual VAT symbol entry of type SYM_ENTRY. These symbol references are used as a safe and efficient method to pass variable references around in the system, so that there are no probems after garbage collection (i.e. the heap compression). In other words, symbol references stay valid even after the heap compression. Note, however, that the references may become invalid whenever a symbol in the same folder is added, removed, or even renamed, since the actual offset of the SYM_ENTRY structure may change during this operation.
You can use the DerefSym function to get a pointer to the actual SYM_ENTRY structure.