Commit e00114c4 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added UnlockFileEx stub.

parent 8f073279
...@@ -1960,6 +1960,32 @@ BOOL WINAPI UnlockFile( HFILE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHi ...@@ -1960,6 +1960,32 @@ BOOL WINAPI UnlockFile( HFILE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHi
} }
/**************************************************************************
* UnlockFileEx (KERNEL32.705)
*/
BOOL WINAPI UnlockFileEx(
HFILE hFile,
DWORD dwReserved,
DWORD nNumberOfBytesToUnlockLow,
DWORD nNumberOfBytesToUnlockHigh,
LPOVERLAPPED lpOverlapped
)
{
FIXME(file, "hFile=%d,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
hFile, dwReserved, nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh,
lpOverlapped);
if (dwReserved == 0)
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
else
{
ERR(file, "reserved == %ld: Supposed to be 0??\n", dwReserved);
SetLastError(ERROR_INVALID_PARAMETER);
}
return FALSE;
}
#if 0 #if 0
struct DOS_FILE_LOCK { struct DOS_FILE_LOCK {
......
...@@ -721,7 +721,7 @@ import ntdll.dll ...@@ -721,7 +721,7 @@ import ntdll.dll
702 stdcall UnhandledExceptionFilter(ptr) UnhandledExceptionFilter 702 stdcall UnhandledExceptionFilter(ptr) UnhandledExceptionFilter
703 stdcall UninitializeCriticalSection(ptr) UninitializeCriticalSection 703 stdcall UninitializeCriticalSection(ptr) UninitializeCriticalSection
704 stdcall UnlockFile(long long long long long) UnlockFile 704 stdcall UnlockFile(long long long long long) UnlockFile
705 stub UnlockFileEx 705 stdcall UnlockFileEx(long long long long ptr) UnlockFileEx
706 stdcall UnmapViewOfFile(ptr) UnmapViewOfFile 706 stdcall UnmapViewOfFile(ptr) UnmapViewOfFile
707 stdcall UpdateResourceA(long str str long ptr long) UpdateResourceA 707 stdcall UpdateResourceA(long str str long ptr long) UpdateResourceA
708 stdcall UpdateResourceW(long wstr wstr long ptr long) UpdateResourceW 708 stdcall UpdateResourceW(long wstr wstr long ptr long) UpdateResourceW
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment