Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Unlocks a file, allowing other processes to access the file.

void _unlock_file(
   FILE* file



File handle.

The _unlock_file function unlocks the file specified by file. Unlocking a file allows access to the file by other processes. This function should not be called unless _lock_file was previously called on the file pointer. Calling _unlock_file on a file that isn't locked may result in a deadlock. For an example, see _lock_file.

Routine Required header Compatibility



Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For additional compatibility information, see Compatibility in the Introduction.

© 2015 Microsoft