The CbSSortOrderSet macro computes the number of bytes in an existing SSortOrderSet structure.
CbSSortOrderSet (_lpset)