_unlock_file

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _unlock_file.

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

void _unlock_file(  
   FILE* file  
);  

Parameters

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.

RoutineRequired header
_unlock_file<stdio.h>

For additional compatibility information, see Compatibility in the Introduction.

System::IO::FileStream::Lock

File Handling
_creat, _wcreat
_open, _wopen
_lock_file

Show: