They probably use gamecache:
Campaign/Gamecache Tutorial
Scroll down to find the part about gamecaches. Basically, instead of saving gold/heroname or whatever, save the string of the save/load code instead. (Or real if they're all #'s, I dunno)
Not sure really where to access wherever wc3 saves that file though. It might be somewhere in the MPQ, I'm not sure.