Aded getMacAddress function for window