Changed struct type from int to wchar