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
4cda16e0
Commit
4cda16e0
authored
Nov 15, 2002
by
Ryan Cumming
Committed by
Alexandre Julliard
Nov 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetFileSizeEx (based on a patch by Steve Lustbader).
parent
15e8e0a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
kernel32.spec
dlls/kernel/kernel32.spec
+1
-0
file.c
files/file.c
+25
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel/kernel32.spec
View file @
4cda16e0
...
...
@@ -366,6 +366,7 @@
@ stdcall GetFileAttributesW(wstr) GetFileAttributesW
@ stdcall GetFileInformationByHandle(long ptr) GetFileInformationByHandle
@ stdcall GetFileSize(long ptr) GetFileSize
@ stdcall GetFileSizeEx(long ptr) GetFileSizeEx
@ stdcall GetFileTime(long ptr ptr ptr) GetFileTime
@ stdcall GetFileType(long) GetFileType
@ stdcall GetFullPathNameA(str long ptr ptr) GetFullPathNameA
...
...
files/file.c
View file @
4cda16e0
...
...
@@ -998,6 +998,31 @@ DWORD WINAPI GetFileSize( HANDLE hFile, LPDWORD filesizehigh )
/***********************************************************************
* GetFileSizeEx (KERNEL32.@)
*/
BOOL
WINAPI
GetFileSizeEx
(
HANDLE
hFile
,
PLARGE_INTEGER
lpFileSize
)
{
BY_HANDLE_FILE_INFORMATION
info
;
if
(
!
lpFileSize
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
!
GetFileInformationByHandle
(
hFile
,
&
info
))
{
return
FALSE
;
}
lpFileSize
->
s
.
LowPart
=
info
.
nFileSizeLow
;
lpFileSize
->
s
.
HighPart
=
info
.
nFileSizeHigh
;
return
TRUE
;
}
/***********************************************************************
* GetFileTime (KERNEL32.@)
*/
BOOL
WINAPI
GetFileTime
(
HANDLE
hFile
,
FILETIME
*
lpCreationTime
,
...
...
include/winbase.h
View file @
4cda16e0
...
...
@@ -1304,6 +1304,7 @@ BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRI
BOOL
WINAPI
GetFileSecurityW
(
LPCWSTR
,
SECURITY_INFORMATION
,
PSECURITY_DESCRIPTOR
,
DWORD
,
LPDWORD
);
#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
DWORD
WINAPI
GetFileSize
(
HANDLE
,
LPDWORD
);
BOOL
WINAPI
GetFileSizeEx
(
HANDLE
,
PLARGE_INTEGER
);
BOOL
WINAPI
GetFileTime
(
HANDLE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
DWORD
WINAPI
GetFileType
(
HANDLE
);
DWORD
WINAPI
GetFullPathNameA
(
LPCSTR
,
DWORD
,
LPSTR
,
LPSTR
*
);
...
...
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