Python - Difference Between Windows SystemParametersInfoW vs SystemParametersInfoA Function

前端 未结 2 563
抹茶落季
抹茶落季 2021-01-16 06:29

I have a quick question that I cannot seem to clarify, despite my research on Stack Overflow and beyond. My questions involves the Windows SystemParametersInfo function with

2条回答
  •  被撕碎了的回忆
    2021-01-16 07:10

    On Windows 3.x/95/98/ME it is likely that only SystemParametersInfoA works correctly. On all other systems both the A and W flavor will work regardless of the OS bitness.

    Assuming you only support "recent" versions of Windows, you should just pick the flavor most comfortable for you to use in your language and that usually means the flavor that matches the default string type in your language.

    If you want to support both Python v2 & v3 you would have to choose at run-time which function to call if you are using the default string type.

提交回复
热议问题