copy of winjcom, reorganized for work on 64 bi windows