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
3003ee9b
Commit
3003ee9b
authored
Jan 20, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskFolder::DeleteFolder.
parent
630354f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
folder.c
dlls/taskschd/folder.c
+31
-2
No files found.
dlls/taskschd/folder.c
View file @
3003ee9b
...
@@ -137,6 +137,29 @@ static HRESULT reg_open_folder(const WCHAR *path, HKEY *hfolder)
...
@@ -137,6 +137,29 @@ static HRESULT reg_open_folder(const WCHAR *path, HKEY *hfolder)
return
HRESULT_FROM_WIN32
(
ret
);
return
HRESULT_FROM_WIN32
(
ret
);
}
}
static
HRESULT
reg_delete_folder
(
const
WCHAR
*
path
,
const
WCHAR
*
name
)
{
HKEY
hroot
,
hfolder
;
DWORD
ret
;
ret
=
RegCreateKeyA
(
HKEY_LOCAL_MACHINE
,
root
,
&
hroot
);
if
(
ret
)
return
HRESULT_FROM_WIN32
(
ret
);
while
(
*
path
==
'\\'
)
path
++
;
ret
=
RegOpenKeyExW
(
hroot
,
path
,
0
,
DELETE
,
&
hfolder
);
RegCloseKey
(
hroot
);
while
(
*
name
==
'\\'
)
name
++
;
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
RegDeleteKeyW
(
hfolder
,
name
);
RegCloseKey
(
hfolder
);
}
return
HRESULT_FROM_WIN32
(
ret
);
}
static
inline
void
reg_close_folder
(
HKEY
hfolder
)
static
inline
void
reg_close_folder
(
HKEY
hfolder
)
{
{
RegCloseKey
(
hfolder
);
RegCloseKey
(
hfolder
);
...
@@ -176,8 +199,14 @@ static HRESULT WINAPI TaskFolder_CreateFolder(ITaskFolder *iface, BSTR name, VAR
...
@@ -176,8 +199,14 @@ static HRESULT WINAPI TaskFolder_CreateFolder(ITaskFolder *iface, BSTR name, VAR
static
HRESULT
WINAPI
TaskFolder_DeleteFolder
(
ITaskFolder
*
iface
,
BSTR
name
,
LONG
flags
)
static
HRESULT
WINAPI
TaskFolder_DeleteFolder
(
ITaskFolder
*
iface
,
BSTR
name
,
LONG
flags
)
{
{
FIXME
(
"%p,%s,%x: stub
\n
"
,
iface
,
debugstr_w
(
name
),
flags
);
TaskFolder
*
folder
=
impl_from_ITaskFolder
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p,%s,%x
\n
"
,
iface
,
debugstr_w
(
name
),
flags
);
if
(
flags
)
FIXME
(
"unsupported flags %x
\n
"
,
flags
);
return
reg_delete_folder
(
folder
->
path
,
name
);
}
}
static
HRESULT
WINAPI
TaskFolder_GetTask
(
ITaskFolder
*
iface
,
BSTR
path
,
IRegisteredTask
**
task
)
static
HRESULT
WINAPI
TaskFolder_GetTask
(
ITaskFolder
*
iface
,
BSTR
path
,
IRegisteredTask
**
task
)
...
...
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