Scroll to navigation

LockFileEx(3w) Wine API LockFileEx(3w)

NAME

LockFileEx (KERNEL32.@)

SYNOPSIS

BOOL LockFileEx
(
HANDLE hFile,
DWORD flags,
DWORD reserved,
DWORD count_low,
DWORD count_high,
LPOVERLAPPED overlapped
)
 

DESCRIPTION

Locks a byte range within an open file for shared or exclusive access.
 

RETURNS

success: TRUE
failure: FALSE.
 

NOTES

Per Microsoft(tm) docs, the third parameter ( reserved) must be set to 0.
 

IMPLEMENTATION

Declared in "winbase.h".
Implemented in "dlls/kernel32/file.c".
Debug channel "file".
Oct 2012 Wine API