Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/250067

From BetaArchive Wiki
Knowledge Base


WritePrivateProfileString() Does Not Work If You Do Not Have Delete Access on the Folder

Article ID: 250067

Article Last Modified on 11/1/2006



APPLIES TO

  • Microsoft Windows NT 4.0 Service Pack 4
  • Microsoft Windows NT 4.0 Service Pack 5
  • Microsoft Windows NT 4.0 Service Pack 6
  • Microsoft Windows NT 4.0 Service Pack 6a
  • Microsoft Windows NT Server 4.0 Enterprise Edition
  • Microsoft Windows NT 4.0 Service Pack 4
  • Microsoft Windows NT 4.0 Service Pack 5
  • Microsoft Windows NT 4.0 Service Pack 6
  • Microsoft Windows NT 4.0 Service Pack 6a
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Workstation 4.0
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition



This article was previously published under Q250067

SYMPTOMS

If the WritePrivateProfileString function is called to update an .ini file in a folder to which you do not have Delete access, the call does not succeed. Calling the GetLastError function returns ERROR_ACCESS_DENIED.

CAUSE

WritePrivateProfileString tries to open the file with Delete access. Because you do not have Delete permissions for the folder, the opening of the file does not succeed.

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

   Date        Time      Size       File name     Platform
   -------------------------------------------------------
   01/02/2000  12:34p    375,056    Kernel32.dll  x86
   01/02/2000  12:33p    589,584    Kernel32.dll  Alpha
                



WORKAROUND

Grant Delete permissions to the user for the folder containing the .ini file.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbfix kbqfe kbsyssettings kbhotfixserver KB250067