Added UnlockFileEx stub.

This commit is contained in:
Andreas Mohr 1999-07-03 11:56:07 +00:00 committed by Alexandre Julliard
parent 8f073279b3
commit e00114c414
2 changed files with 27 additions and 1 deletions

View File

@ -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
struct DOS_FILE_LOCK {

View File

@ -721,7 +721,7 @@ import ntdll.dll
702 stdcall UnhandledExceptionFilter(ptr) UnhandledExceptionFilter
703 stdcall UninitializeCriticalSection(ptr) UninitializeCriticalSection
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
707 stdcall UpdateResourceA(long str str long ptr long) UpdateResourceA
708 stdcall UpdateResourceW(long wstr wstr long ptr long) UpdateResourceW