added windows support to get memory of process