| description |
Learn more about: _unlock_file |
| title |
_unlock_file |
| ms.date |
4/2/2020 |
| api_name |
_unlock_file |
_o__unlock_file |
|
| api_location |
msvcrt.dll |
msvcr80.dll |
msvcr90.dll |
msvcr100.dll |
msvcr100_clr0400.dll |
msvcr110.dll |
msvcr110_clr0400.dll |
msvcr120.dll |
msvcr120_clr0400.dll |
ucrtbase.dll |
api-ms-win-crt-filesystem-l1-1-0.dll |
|
| api_type |
|
| topic_type |
|
| f1_keywords |
STDIO/_unlock_file |
_unlock_file |
|
| helpviewer_keywords |
files [C++], unlocking |
unlock_file function |
_unlock_file function |
unlocking files |
|
| ms.assetid |
cf380a51-6d3a-4f38-bd64-2d4fb57b4369 |
Unlocks a file, allowing other processes to access the file.
void _unlock_file(
FILE* file
);
file
File handle.
Remarks
The _unlock_file function unlocks the file specified by file. Unlocking a file allows access to the file by other processes. This function shouldn't 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.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
| Routine |
Required header |
_unlock_file |
<stdio.h> |
For more compatibility information, see Compatibility.
File handling
_creat, _wcreat
_open, _wopen
_lock_file