A node’s data (see header and node database) is usually a heap holding a property context or a table context. This page follows [MS-PST] sections 2.3 and 2.4, read 2026-11-12. Property tags and types are those of MAPI, as in MSG files.
Heap-on-node
The first block of a heap starts with HNHDR; later blocks start with a short
HNPAGEHDR (2 bytes, ibHnpm), except block 8 (counting from 0) and
every 128th block after it, which start with HNBITMAPHDR: ibHnpm and
64 bytes of fill levels for the next 128 blocks.
| HNHDR field | Size | Meaning |
|---|---|---|
ibHnpm | 2 | Offset of the page map in this block. |
bSig | 1 | EC. |
bClientSig | 1 | What the heap holds: 7C table context, B5 B-tree-on-heap, BC property context; other values (6C, 8C, 9C, A5, AC, CC) are reserved. |
hidUserRoot | 4 | HID of the client’s root structure. |
rgbFillLevel | 4 | Fill levels of the first 8 blocks, 4 bits each: 0 at least 3,584 bytes free, down to F less than 8 bytes free. |
The page map (HNPAGEMAP): cAlloc (2), cFree (2), then
cAlloc + 1 offsets of the allocations. A HID is 32
bits: hidType (5 bits, 0), hidIndex (11 bits, from 1) and
hidBlockIndex (16 bits). An HNID is either a HID or,
when its low 5 bits are not 0, the NID of a subnode holding larger data.
B-tree-on-heap
| BTHHEADER field | Size | Meaning |
|---|---|---|
bType | 1 | B5. |
cbKey | 1 | Key size: 2, 4, 8 or 16. |
cbEnt | 1 | Data size, 1 to 32. |
bIdxLevels | 1 | Levels above the leaves. |
hidRoot | 4 | HID of the root records, 0 when empty. |
Leaf records are key and data; intermediate records are key and the HID of the next level.
Property context
A heap with bClientSig BC whose root is a B-tree with
2-byte keys (the property ID) and 6-byte data: wPropType (2) and
dwValueHnid (4). Values of 4 bytes or less are stored in
dwValueHnid itself; larger ones are at that HID (up to 3,580 bytes) or
in that subnode. Multi-valued properties of fixed-size types are just the values
one after another (the count is the size divided by the item size); those of
variable-size types start with a 4-byte count and an offset for each value.
Table context
| TCINFO field | Size (U / A) | Meaning |
|---|---|---|
bType | 1 | 7C. |
cCols | 1 | Number of columns. |
rgib | 4 × 2 | Offsets in each row: end of the 4- and 8-byte columns, end of the 2-byte columns, end of the 1-byte columns, end of the cell existence bitmap (the row size). |
hidRowIndex | 4 | B-tree from row ID (4 bytes) to row number (4 bytes Unicode, 2 ANSI). |
hnidRows | 4 | The row matrix: a HID, or a subnode when large. |
hidIndex | 4 | Deprecated, 0. |
rgTCOLDESC | 8 each | Columns: tag (4), ibData (2, offset in the row), cbData (1), iBit (1, bit in the cell existence bitmap). |
Each row starts with its 4-byte row ID, then holds the 4- and 8-byte columns, then
2-byte, then 1-byte, then a bitmap of ceil(cCols / 8) bytes saying
which cells hold a value (bit 0 is the most significant bit of the first byte).
Variable-size values, and fixed-size ones over 8 bytes, hold an HNID. In a subnode
row matrix, rows do not cross block boundaries; each block starts with a new
row.
Messaging objects
| Object | Made of |
|---|---|
| Message store | The property context at NID 21: display name, record key, entry IDs of the root of the folder tree (IPM subtree), deleted items and search root, and PidTagPstPassword (67FF0003, a CRC of the password, not encryption). |
| Named property map | The property context at NID 61: a GUID stream, an entry stream and a string stream, each stored as a property of that context (such as PidTagNameidStreamGuid), much as in MSG files, plus a hash table for searching. |
| Folder | Four nodes with the same index: a property context (type 02), its hierarchy table (0D, the subfolders), contents table (0E, the messages) and associated contents table (0F, folder associated information: messages usually hidden from view that hold settings such as forms, views and category lists). The root folder is NID 122. |
| Message | A property context (type 04) whose subnodes hold its recipient table (type 12, required), its attachment table (type 11, at most one), each attachment’s property context (type 05) and large property values. The column sets come from template tables at NIDs 692 and 671. |
| Attachment | A property context with PidTagAttachMethod and the data in PidTagAttachDataBinary (37010102), or for an embedded message PidTagAttachDataObject (3701000D), naming a subnode that holds the message. |
Search objects
[MS-PST] 2.4.8 (read 2026-11-13) describes these only so that a writer can keep them in step and a reader can recognise them; it explicitly does not explain how to create search folders or criteria, process the queues or index content. Whenever the contents change, the writer queues a search update descriptor (SUD) in the search management queue; if the SUDs are missing or out of order, search folders drift out of step with the real contents.
| Object | NID | What it is |
|---|---|---|
| Search management queue (SMQ) | 1E1 | The one master FIFO of pending SUDs; items are 16-byte-data SUD structures (below). |
| Search activity list (SAL) | 201 | A plain array of NIDs of the folders that have a search folder. Writers should not change it. |
| Search domain object (SDO) | 261 | A plain array of the NIDs of every folder that any search criteria refer to: the global search domain. |
| Search gatherer queue (SGQ) | 281 | A queue of SUDs for content indexing, filled from the SMQ. Never modified by a writer. |
| Search gatherer descriptor (SGD) | 2A1 | An opaque binary blob giving context to content indexing. Never modified. |
| Search gatherer folder queue (SGFQ) | 321 | A plain array of NIDs of folders with content-indexing activity. Never modified. |
| Search folder (SF) | type 03 | A property context with the same schema as a normal folder (empty template at NID C1). |
| Search contents table (SFCT) | type 10 | A table listing the messages that match the criteria. Its template is NID 610, with no rows and the columns 0017 importance, 001A message class, 0036 sensitivity, 0E07 message flags, 0E17 message status, 0037 subject, 0042 sent-representing name, 0057 message to me, 0E03 display Cc, 0E04 display To, 0E05 parent display, 0E06 delivery time, 0E08 size, 0E2A has Exchange remote header, 3008 last modification time, and the LTP columns 67F1 parent NID, 67F2 row ID, 67F3 row version. |
| Search update queue (SUQ) | type 06 | A queue of the SUDs that concern one search folder, moved from the SMQ. Never modified by a writer. |
| Search criteria object (SCO) | type 07 | A property context holding the folder's criteria; its properties are not described. Never modified. |
Queue node. A queue is a node holding an array of fixed-size items
(size k depends on the queue). Items are appended at the end; removing one
does not shift the rest: the NBT entry's nidParent field is reused as the
byte offset of the head. The item count is cbData / k, and the contents
must not be processed if cbData is not a multiple of k. When
the last item is removed (nidParent equals cbData) the whole
contents are deleted and both are reset to 0.
SUD structure: wFlags (2), wSUDType (2), then
16 bytes of SUDData whose form depends on the type. A flag value outside
those listed for its type is undefined (0).
wSUDType | Name | SUDData (4-byte NIDs, in order) |
|---|---|---|
0000 | SUDT_NULL | Invalid. |
0001, 0002, 0003 | MSG_ADD, MSG_MOD, MSG_DEL | nidParent, nidMsg. |
0004 | MSG_MOV | nidParentNew, nidMsg, nidParentOld. |
0005, 0008 | FLD_ADD, FLD_MOV | nidParent, nidMsg (the folder), two reserved dwords of 0. |
0006, 0007 | FLD_MOD, FLD_DEL | nidFld, one reserved dword (0). |
0009, 000B | SRCH_ADD, SRCH_DEL | nidSrch. |
000A | SRCH_MOD | nidSrch, one reserved dword (0). |
000C | MSG_ROW_MOD | As MSG_MOD: a message changed in a way that affects a contents table. |
000D | MSG_SPAM | nidParent, nidMsg: a message identified as spam. |
000E | IDX_MSG_DEL | nidParent, nidMsg: an indexed message was deleted. |
000F | MSG_IDX | nidMsg: a message was indexed. |
wFlags | Name | Meaning (type) |
|---|---|---|
0001 | SUDF_PRIORITY_LOW | Change a search folder's priority to foreground (SRCH_MOD). |
0002 | SUDF_PRIORITY_HIGH | Change it to background (SRCH_MOD). |
0004 | SUDF_SEARCH_RESTART | Rebuild the search folder's contents in full (SRCH_MOD). |
0008 | SUDF_NAME_CHANGED | The folder's display name changed (FLD_MOD). |
0010 | SUDF_MOVE_OUT_TO_IN | Moved from outside the search domain into it (FLD_MOV, MSG_MOV). |
0020 | SUDF_MOVE_IN_TO_IN | Moved within the domain (FLD_MOV, MSG_MOV). |
0040 | SUDF_MOVE_IN_TO_OUT | Moved out of the domain (MSG_MOV). |
0080 | SUDF_MOVE_OUT_TO_OUT | Moved between non-domain places (MSG_MOV). |
0100 | SUDF_SPAM_CHECK_SERVER | Make sure the spam message is deleted on the server (MSG_SPAM). |
0200 | SUDF_SET_DEL_NAME | The delegate root name of the folder changed (FLD_MOD). |
0400 | SUDF_SRCH_DONE | The search for the object is finished (SRCH_MOD). |
8000 | SUDF_DOMAIN_CHECKED | The object has been checked against the SDO (FLD and MSG types). |
Which SUDs a writer queues. With desktop-search indexing on: MSG_ADD, MSG_MOD, MSG_DEL, FLD_ADD, FLD_MOD, FLD_DEL, IDX_MSG_DEL and MSG_MOV. Always: SRCH_ADD, SRCH_MOD, SRCH_DEL. When the old or new parent folder is in the SDO: MSG_MOV, FLD_MOV, MSG_ADD, MSG_MOD, MSG_ROW_MOD, MSG_DEL, MSG_SPAM, IDX_MSG_DEL, FLD_ADD, FLD_MOD and FLD_DEL. Otherwise nothing is queued.