16位环境中可以对ini进行直接读写操作。32位环境中又是如何做的呢。小弟想写一个查找ini和一个设置ini文件相关键值的函数。(win2k下)谢谢~~~~~:)

解决方案 »

  1.   

    Windows NT/2000: Calls to private profile functions may be mapped to the registry instead of to the specified initialization files. This mapping occurs when the initialization file and section are specified in the registry under the following keys: HKEY_LOCAL_MACHINE\Software\Microsoft        Windows NT\CurrentVersion\IniFileMappingThis mapping is likely if an application modifies system-component initialization files, such as Control.ini, System.ini, and Winfile.ini. In these cases, the GetPrivateProfileString function retrieves information from the registry, not from the initialization file; the change in the storage location has no effect on the function's behavior. 这里大概讲了一下区别 但是我还是没完全弄清楚