Mr Hui joined the Hong Kong Government in 1978 as a student building surveyor. He worked in a wide range of posts in the former Buildings Ordinance Office, the former Building Development Department, the former Buildings and Lands Department and the Buildings Department. In 2001, he was seconded to the Security Bureau of the HKSAR Government and assumed the position of the Principal Assistant Secretary/Special Duties, with the primary responsibility of overseeing aviation security. Before his retirement, Mr Hui was the Director of Buildings between 2014 and 2017.
Mr Hui was appointed by the HKSAR Government and served as a member of the Expert Adviser Team for the Shatin-to-Central Link Project between 2018 and 2020.
Mr Hui has been a member of the Hong Kong Institute of Surveyors since 1984. He holds a Master of Science degree in Interdisciplinary Design and Management from The University of Hong Kong. He was awarded the Silver Bauhinia Star medal in 2017.