Use System.Configuration and XML config files instead, or at least migrate to use the registry. If you really want to interop with windows 3.x code, check http://pinvoke.net/default.aspx/kernel32.WritePrivateProfileString. Visual C++ MVP
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.