Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fa6b0580
Commit
fa6b0580
authored
Sep 10, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Sep 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add partial CreateFile2 implementation.
parent
26d42b9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
0 deletions
+58
-0
file.c
dlls/kernel32/file.c
+15
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
Makefile.in
include/Makefile.in
+1
-0
fileapi.h
include/fileapi.h
+41
-0
No files found.
dlls/kernel32/file.c
View file @
fa6b0580
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include "wincon.h"
#include "wincon.h"
#include "ddk/ntddk.h"
#include "ddk/ntddk.h"
#include "kernel_private.h"
#include "kernel_private.h"
#include "fileapi.h"
#include "wine/exception.h"
#include "wine/exception.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
...
@@ -1527,6 +1528,20 @@ HANDLE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
...
@@ -1527,6 +1528,20 @@ HANDLE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
return
CreateFileW
(
nameW
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
return
CreateFileW
(
nameW
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
}
}
/*************************************************************************
* CreateFile2 (KERNEL32.@)
*/
HANDLE
WINAPI
CreateFile2
(
LPCWSTR
filename
,
DWORD
access
,
DWORD
sharing
,
DWORD
creation
,
CREATEFILE2_EXTENDED_PARAMETERS
*
exparams
)
{
LPSECURITY_ATTRIBUTES
sa
=
exparams
?
exparams
->
lpSecurityAttributes
:
NULL
;
DWORD
attributes
=
exparams
?
exparams
->
dwFileAttributes
:
0
;
HANDLE
template
=
exparams
?
exparams
->
hTemplateFile
:
NULL
;
FIXME
(
"(%s %x %x %x %p), partial stub
\n
"
,
debugstr_w
(
filename
),
access
,
sharing
,
creation
,
exparams
);
return
CreateFileW
(
filename
,
access
,
sharing
,
sa
,
creation
,
attributes
,
template
);
}
/***********************************************************************
/***********************************************************************
* DeleteFileW (KERNEL32.@)
* DeleteFileW (KERNEL32.@)
...
...
dlls/kernel32/kernel32.spec
View file @
fa6b0580
...
@@ -229,6 +229,7 @@
...
@@ -229,6 +229,7 @@
@ stdcall CreateEventW(ptr long long wstr)
@ stdcall CreateEventW(ptr long long wstr)
@ stdcall CreateFiber(long ptr ptr)
@ stdcall CreateFiber(long ptr ptr)
@ stdcall CreateFiberEx(long long long ptr ptr)
@ stdcall CreateFiberEx(long long long ptr ptr)
@ stdcall CreateFile2(wstr long long long ptr)
@ stdcall CreateFileA(str long long ptr long long long)
@ stdcall CreateFileA(str long long ptr long long long)
@ stdcall CreateFileMappingA(long ptr long long long str)
@ stdcall CreateFileMappingA(long ptr long long long str)
@ stdcall CreateFileMappingW(long ptr long long long wstr)
@ stdcall CreateFileMappingW(long ptr long long long wstr)
...
...
include/Makefile.in
View file @
fa6b0580
...
@@ -302,6 +302,7 @@ SRCDIR_INCLUDES = \
...
@@ -302,6 +302,7 @@ SRCDIR_INCLUDES = \
exdispid.h
\
exdispid.h
\
fci.h
\
fci.h
\
fdi.h
\
fdi.h
\
fileapi.h
\
fltdefs.h
\
fltdefs.h
\
gdiplus.h
\
gdiplus.h
\
gdipluscolor.h
\
gdipluscolor.h
\
...
...
include/fileapi.h
0 → 100644
View file @
fa6b0580
/*
* Copyright 2013 André Hentschel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_FILEAPI_H
#define __WINE_FILEAPI_H
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
_CREATEFILE2_EXTENDED_PARAMETERS
{
DWORD
dwSize
;
DWORD
dwFileAttributes
;
DWORD
dwFileFlags
;
DWORD
dwSecurityQosFlags
;
LPSECURITY_ATTRIBUTES
lpSecurityAttributes
;
HANDLE
hTemplateFile
;
}
CREATEFILE2_EXTENDED_PARAMETERS
,
*
PCREATEFILE2_EXTENDED_PARAMETERS
,
*
LPCREATEFILE2_EXTENDED_PARAMETERS
;
WINBASEAPI
HANDLE
WINAPI
CreateFile2
(
LPCWSTR
,
DWORD
,
DWORD
,
DWORD
,
LPCREATEFILE2_EXTENDED_PARAMETERS
);
#ifdef __cplusplus
}
#endif
#endif
/* __WINE_FILEAPI_H */
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