jjzjj

SystemParameterSinfow

全部标签

Python - Windows SystemParametersInfoW 与 SystemParametersInfoA 函数之间的区别

尽管我对StackOverflow及其他方面进行了研究,但我有一个似乎无法澄清的快速问题。我的问题涉及WindowsSystemParametersInfo函数及其与Python3.x脚本相关的变体SystemParametersInfoW(Unicode)和SystemParametersInfoA(ANSI)。在我编写的Python脚本中,我遇到了关于何时使用这些变体的两种不同解释。Thisanswertoaquestion说对于64位机器,您必须使用SystemParametersInfoW,而对于32位机器,您必须使用SystemParametersInfoA,因此您应该运行一

Python- Windows SystemParameterSinfow与SystemParameterSinfoa函数之间的差异

尽管我研究了堆栈溢出及其他问题,但我有一个快速的问题似乎无法澄清。我的问题涉及WindowsSystemParameterSinfo功能,其变体SystemParameterSinfow(Unicode)和SystemParameterSinfoa(ANSI)与Python3.x脚本有关。在我写的python脚本中,我遇到了两个不同的解释,何时使用这些变体。这个问题的答案说,对于64位计算机,您必须使用SystemParameterSinfow,而对于32位计算机,则必须使用SystemParameterSinfoa,因此您应该运行一个函数来确定脚本正在运行的哪个位机器。然而,这里的另一个答案