You will need to go through Canadian Immigration and Customs, go land-side, then pass through US pre-clearance (immigration, customs, security). Even if you have access to NEXUS (more or less a Canadian version of Global Entry) I don't think 35 mins is enough.
--
13F