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
934a6491
Commit
934a6491
authored
Apr 17, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Implement NetrJobDel.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bab40d15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
atsvc.c
dlls/schedsvc/atsvc.c
+29
-2
No files found.
dlls/schedsvc/atsvc.c
View file @
934a6491
...
...
@@ -363,8 +363,35 @@ DWORD __cdecl NetrJobAdd(ATSVC_HANDLE server_name, AT_INFO *info, DWORD *jobid)
DWORD
__cdecl
NetrJobDel
(
ATSVC_HANDLE
server_name
,
DWORD
min_jobid
,
DWORD
max_jobid
)
{
FIXME
(
"%s,%u,%u: stub
\n
"
,
debugstr_w
(
server_name
),
min_jobid
,
max_jobid
);
return
ERROR_NOT_SUPPORTED
;
DWORD
jobid
,
ret
=
ERROR_FILE_NOT_FOUND
;
TRACE
(
"%s,%u,%u
\n
"
,
debugstr_w
(
server_name
),
min_jobid
,
max_jobid
);
EnterCriticalSection
(
&
at_job_list_section
);
for
(
jobid
=
min_jobid
;
jobid
<=
max_jobid
;
jobid
++
)
{
struct
job_t
*
job
=
find_job
(
jobid
,
NULL
);
if
(
!
job
)
{
TRACE
(
"job %u not found
\n
"
,
jobid
);
ret
=
ERROR_FILE_NOT_FOUND
;
break
;
}
TRACE
(
"deleting job %s
\n
"
,
debugstr_w
(
job
->
name
));
if
(
!
DeleteFileW
(
job
->
name
))
{
ret
=
GetLastError
();
break
;
}
ret
=
ERROR_SUCCESS
;
}
LeaveCriticalSection
(
&
at_job_list_section
);
return
ret
;
}
static
void
free_container
(
AT_ENUM_CONTAINER
*
container
)
...
...
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