Compare carefully:
كِتَابُ الْوَلَدِ هَذَا — this book of the boy.
كِتَابُ هَذَا الْوَلَدِ — the book of this boy.
Important limitation: the presence of هَذَا does not by itself tell which noun is intended. Its position and the intended meaning work together.