Barrel less than 18 inches only refers to firearms adapted from a rifle or shotgun. A handgun barrel must exceed 105 mm to remain legal (or unregulated). A handgun barrel equal to or less less than 105 mm is a prohibited device on and to itself.
s 84. (1) In this Part,
...
“prohibited firearm” means
(a) a handgun that
(i) has a barrel equal to or less than 105 mm in length, or
(ii) is designed or adapted to discharge a 25 or 32 calibre cartridge,
but does not include any such handgun that is prescribed, where the handgun is for use in international sporting competitions governed by the rules of the International Shooting Union,
(b) a firearm that is adapted from a rifle or shotgun, whether by sawing, cutting or any other alteration, and that, as so adapted,
(i) is less than 660 mm in length, or
(ii) is 660 mm or greater in length and has a barrel less than 457 mm in length,
(c) an automatic firearm, whether or not it has been altered to discharge only one projectile with one pressure of the trigger, or
(d) any firearm that is prescribed to be a prohibited firearm;
...
”prohibited device" means
(a) any component or part of a weapon, or any accessory for use with a weapon, that is prescribed to be a prohibited device,
(b) a handgun barrel that is equal to or less than 105 mm in length, but does not include any such handgun barrel that is prescribed, where the handgun barrel is for use in international sporting competitions governed by the rules of the International Shooting Union,
(c) a device or contrivance designed or intended to muffle or stop the sound or report of a firearm,
(d) a cartridge magazine that is prescribed to be a prohibited device, or
(e) a replica firearm;