SystemParametersInfoA需要一个8位ANSI编码的输入字符串作为参数,这
mbcs在Python中被称为encoding
。
您将不得不
SystemParametersInfoW在python3中使用。这是因为
SystemParametersInfoW接受UTF-16宽字符串(
wchar_t*在C中),并且
ctypes库自动将此传递的unipre参数转换为
c_wchar_p。
有关更多详细信息,请参考文档。

SystemParametersInfoA需要一个8位ANSI编码的输入字符串作为参数,这
mbcs在Python中被称为encoding
您将不得不
SystemParametersInfoW在python3中使用。这是因为
SystemParametersInfoW接受UTF-16宽字符串(
wchar_t*在C中),并且
ctypes库自动将此传递的unipre参数转换为
c_wchar_p。
有关更多详细信息,请参考文档。