Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e8df90b9
Commit
e8df90b9
authored
Jun 05, 1999
by
James Juran
Committed by
Alexandre Julliard
Jun 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stub for LockFileEx (KERNEL32.513).
parent
39f69f7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
file.c
files/file.c
+30
-0
winbase.h
include/winbase.h
+1
-0
kernel32.spec
relay32/kernel32.spec
+1
-1
No files found.
files/file.c
View file @
e8df90b9
...
...
@@ -1915,6 +1915,36 @@ BOOL WINAPI LockFile( HFILE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHigh
return
!
CLIENT_WaitReply
(
NULL
,
NULL
,
0
);
}
/**************************************************************************
* LockFileEx [KERNEL32.512]
*
* Locks a byte range within an open file for shared or exclusive access.
*
* RETURNS
* success: TRUE
* failure: FALSE
* NOTES
*
* Per Microsoft docs, the third parameter (reserved) must be set to 0.
*/
BOOL
WINAPI
LockFileEx
(
HANDLE
hFile
,
DWORD
flags
,
DWORD
reserved
,
DWORD
nNumberOfBytesToLockLow
,
DWORD
nNumberOfBytesToLockHigh
,
LPOVERLAPPED
pOverlapped
)
{
FIXME
(
file
,
"hFile=%d,flags=%ld,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.
\n
"
,
hFile
,
flags
,
reserved
,
nNumberOfBytesToLockLow
,
nNumberOfBytesToLockHigh
,
pOverlapped
);
if
(
reserved
==
0
)
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
else
{
ERR
(
file
,
"reserved == %ld: Supposed to be 0??
\n
"
,
reserved
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
}
return
FALSE
;
}
/**************************************************************************
* UnlockFile (KERNEL32.703)
...
...
include/winbase.h
View file @
e8df90b9
...
...
@@ -1369,6 +1369,7 @@ BOOL WINAPI IsProcessorFeaturePresent(DWORD);
BOOL
WINAPI
IsValidLocale
(
DWORD
,
DWORD
);
BOOL
WINAPI
LocalFileTimeToFileTime
(
const
FILETIME
*
,
LPFILETIME
);
BOOL
WINAPI
LockFile
(
HFILE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
);
BOOL
WINAPI
LockFileEx
(
HANDLE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPOVERLAPPED
);
HMODULE
WINAPI
MapHModuleSL
(
HMODULE16
);
HMODULE16
WINAPI
MapHModuleLS
(
HMODULE
);
SEGPTR
WINAPI
MapLS
(
LPVOID
);
...
...
relay32/kernel32.spec
View file @
e8df90b9
...
...
@@ -530,7 +530,7 @@ import ntdll.dll
510 stdcall LocalSize(long) LocalSize
511 stdcall LocalUnlock(long) LocalUnlock
512 stdcall LockFile(long long long long long) LockFile
513 st
ub
LockFileEx
513 st
dcall LockFileEx(long long long long long ptr)
LockFileEx
514 stdcall LockResource(long) LockResource
515 stdcall MakeCriticalSectionGlobal(ptr) MakeCriticalSectionGlobal
516 register MapHInstLS() MapHInstLS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment