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
1bb3859e
Commit
1bb3859e
authored
Jun 13, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for overlapped ioctl requests (and a few other
cosmetics).
parent
99bc6404
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
cdrom.c
dlls/ntdll/cdrom.c
+0
-0
file.h
include/file.h
+5
-4
ntddscsi.h
include/ntddscsi.h
+11
-0
device.c
win32/device.c
+8
-3
No files found.
dlls/ntdll/cdrom.c
View file @
1bb3859e
This diff is collapsed.
Click to expand it.
include/file.h
View file @
1bb3859e
...
...
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include "winbase.h"
#include "wine/windef16.h"
/* HFILE16 */
#include "winternl.h"
#define MAX_PATHNAME_LEN 1024
...
...
@@ -118,9 +119,9 @@ extern int PROFILE_GetWineIniBool( LPCWSTR section, LPCWSTR key_name, int def );
extern
HANDLE
DEVICE_Open
(
LPCWSTR
filename
,
DWORD
access
,
LPSECURITY_ATTRIBUTES
sa
);
/* ntdll/cdrom.c.c */
extern
BOOL
CDROM_DeviceIoControl
(
DWORD
clientID
,
HANDLE
hDevice
,
DWORD
dwIoControlCode
,
LPVOID
lpInBuffer
,
DWORD
nInBufferSize
,
LPVOID
lpOutBuffer
,
DWORD
nOutBufferSize
,
LPDWORD
lpBytesReturned
,
LPOVERLAPPED
lpOverlapped
);
extern
NTSTATUS
CDROM_DeviceIoControl
(
DWORD
clientID
,
HANDLE
hDevice
,
DWORD
dwIoControlCode
,
LPVOID
lpInBuffer
,
DWORD
nInBufferSize
,
LPVOID
lpOutBuffer
,
DWORD
nOutBufferSize
,
LPDWORD
lpBytesReturned
,
LPOVERLAPPED
lpOverlapped
);
#endif
/* __WINE_FILE_H */
include/ntddscsi.h
View file @
1bb3859e
...
...
@@ -82,6 +82,17 @@ typedef struct _SCSI_ADDRESS {
UCHAR
Lun
;
}
SCSI_ADDRESS
,
*
PSCSI_ADDRESS
;
typedef
struct
_IO_SCSI_CAPABILITIES
{
ULONG
Length
;
ULONG
MaximumTransferLength
;
ULONG
MaximumPhysicalPages
;
ULONG
SupportedAsynchronousEvents
;
ULONG
AlignmentMask
;
BOOLEAN
TaggedQueuing
;
BOOLEAN
AdapterScansDown
;
BOOLEAN
AdapterUsesPio
;
}
IO_SCSI_CAPABILITIES
,
*
PIO_SCSI_CAPABILITIES
;
#ifdef __cplusplus
}
#endif
...
...
win32/device.c
View file @
1bb3859e
...
...
@@ -439,9 +439,14 @@ BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
strcpy
(
str
,
"A:"
);
str
[
0
]
+=
LOBYTE
(
clientID
);
if
(
GetDriveTypeA
(
str
)
==
DRIVE_CDROM
)
return
CDROM_DeviceIoControl
(
clientID
,
hDevice
,
dwIoControlCode
,
lpvInBuffer
,
cbInBuffer
,
lpvOutBuffer
,
cbOutBuffer
,
lpcbBytesReturned
,
lpOverlapped
);
{
NTSTATUS
status
;
status
=
CDROM_DeviceIoControl
(
clientID
,
hDevice
,
dwIoControlCode
,
lpvInBuffer
,
cbInBuffer
,
lpvOutBuffer
,
cbOutBuffer
,
lpcbBytesReturned
,
lpOverlapped
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
));
return
!
status
;
}
else
switch
(
dwIoControlCode
)
{
case
FSCTL_DELETE_REPARSE_POINT
:
...
...
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