cBuffer = REPLICATE(Chr(0), 4096) && set appropriate length RegTemplate.Export(@cBuffer)
RegTemplate.Export(cBuffer)