GetPrivateProfileString() lock the file?

I wrote a program using GetPrivateProfileString() API function. It seems to lock the .INI file for writing over the network, so other application can not access it.
Can it be???
I am talking about Windows 95.
gidonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
amartin030297Connect With a Mentor Commented:
Yup.. its true.. a lock does occure when over the network.
Since Windows is reading the file (which takes some finite
amount of time which is non-zero)... In theory, at the SAME
time another user could be changing the .INI file (saving it
out)... And there would be a collosion.  So, yes, Win95
will locked the file.... as segmented file locking for
xxxProfileString was not implemented.
   
0
 
RONSLOWCommented:
What operating system are you talking about?
0
 
gidonAuthor Commented:
Edited text of question
0
 
gidonAuthor Commented:
What can i do to stop this locking?
Should i write my own version of GetPrivateProfileString()?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.