added getsystemmetrics hook