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
17c4c1be
Commit
17c4c1be
authored
Feb 25, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement DriveType property of IDrive.
parent
b8e78f32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
9 deletions
+33
-9
filesystem.c
dlls/scrrun/filesystem.c
+27
-3
scrrun.idl
dlls/scrrun/scrrun.idl
+6
-6
No files found.
dlls/scrrun/filesystem.c
View file @
17c4c1be
...
...
@@ -573,11 +573,35 @@ static HRESULT WINAPI drive_get_ShareName(IDrive *iface, BSTR *share_name)
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
drive_get_DriveType
(
IDrive
*
iface
,
DriveTypeConst
*
p
type
)
static
HRESULT
WINAPI
drive_get_DriveType
(
IDrive
*
iface
,
DriveTypeConst
*
type
)
{
struct
drive
*
This
=
impl_from_IDrive
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
ptype
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
type
);
switch
(
GetDriveTypeW
(
This
->
root
))
{
case
DRIVE_REMOVABLE
:
*
type
=
Removable
;
break
;
case
DRIVE_FIXED
:
*
type
=
Fixed
;
break
;
case
DRIVE_REMOTE
:
*
type
=
Remote
;
break
;
case
DRIVE_CDROM
:
*
type
=
CDRom
;
break
;
case
DRIVE_RAMDISK
:
*
type
=
RamDisk
;
break
;
default:
*
type
=
UnknownType
;
break
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
drive_get_RootFolder
(
IDrive
*
iface
,
IFolder
**
folder
)
...
...
dlls/scrrun/scrrun.idl
View file @
17c4c1be
...
...
@@ -92,12 +92,12 @@ library Scripting
typedef
enum
DriveTypeConst
{
UnknownType
=
0
,
Removable
=
1
,
Fixed
=
2
,
Remote
=
3
,
CDRom
=
4
,
RamDisk
=
5
UnknownType
,
Removable
,
Fixed
,
Remote
,
CDRom
,
RamDisk
}
DriveTypeConst
;
typedef
enum
StandardStreamTypes
...
...
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