说我有一个像这样的INI文件:
[123] name=Ryan name=Joe
我如何使用API调用(如GetPrivateProfileSection和GetPrivateProfileString)检索“name = Ryan \ nname = Joe”?
是的,GetPrivateProfileSection将返回它。 GetPrivateProfileString()显然只能检索“Ryan”。 你不会把你想要的字符串交给你,名字/值对用零隔开。 列表的末尾用两个零表示。 当你解析它的时候你需要考虑这个。