The GetWinFlags function has been deleted. It is x86 specific and cannot be used in Win32.
Use the GetSystemInfo function.
GetSystemInfo