The following Special handler header structure (represented here in MASM 5.1 compatible syntax) must be located starting at offset 0 of the load module. The structure name is S_spec_tsr_hdr and is located in the file spectsr.mac.:
TSR_hdr_init DD ?Set at compile (or link) time to the offset of the handler's initialization code. System manager fills in the next word in the structure with the handler's code segment.
TSR_mem_bytes DD ?This field does not have to be set unless the handler's memory needs are greater than the file's size.
TSR_hdr_sig DD ?Validating bytes for identifying file as special handler.
TSR_hdr_parent DB ?Indicates load origin. Value equals TCB index of loading application. A value of 0ffh indicates that no application is currently associated with the handler.