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
0e802b9c
Commit
0e802b9c
authored
Mar 18, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Replace external trace statements by internal versions.
parent
ad811499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
schedsvc.c
dlls/schedsvc/schedsvc.c
+24
-24
svc_main.c
dlls/schedsvc/svc_main.c
+4
-4
No files found.
dlls/schedsvc/schedsvc.c
View file @
0e802b9c
...
...
@@ -31,7 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(schedsvc);
HRESULT
__cdecl
SchRpcHighestVersion
(
DWORD
*
version
)
{
WINE_
TRACE
(
"%p
\n
"
,
version
);
TRACE
(
"%p
\n
"
,
version
);
*
version
=
MAKELONG
(
3
,
1
);
return
S_OK
;
...
...
@@ -170,8 +170,8 @@ HRESULT __cdecl SchRpcRegisterTask(const WCHAR *path, const WCHAR *xml, DWORD fl
DWORD
disposition
;
HRESULT
hr
;
WINE_TRACE
(
"%s,%s,%#x,%s,%u,%u,%p,%p,%p
\n
"
,
wine_dbgstr_w
(
path
),
wine_db
gstr_w
(
xml
),
flags
,
wine_db
gstr_w
(
sddl
),
task_logon_type
,
n_creds
,
creds
,
actual_path
,
xml_error_info
);
TRACE
(
"%s,%s,%#x,%s,%u,%u,%p,%p,%p
\n
"
,
debugstr_w
(
path
),
debu
gstr_w
(
xml
),
flags
,
debu
gstr_w
(
sddl
),
task_logon_type
,
n_creds
,
creds
,
actual_path
,
xml_error_info
);
*
actual_path
=
NULL
;
*
xml_error_info
=
NULL
;
...
...
@@ -282,7 +282,7 @@ HRESULT __cdecl SchRpcRetrieveTask(const WCHAR *path, const WCHAR *languages, UL
WCHAR
*
full_name
;
HRESULT
hr
;
WINE_TRACE
(
"%s,%s,%p,%p
\n
"
,
wine_dbgstr_w
(
path
),
wine_db
gstr_w
(
languages
),
n_languages
,
xml
);
TRACE
(
"%s,%s,%p,%p
\n
"
,
debugstr_w
(
path
),
debu
gstr_w
(
languages
),
n_languages
,
xml
);
full_name
=
get_full_name
(
path
,
NULL
);
if
(
!
full_name
)
return
E_OUTOFMEMORY
;
...
...
@@ -299,7 +299,7 @@ HRESULT __cdecl SchRpcCreateFolder(const WCHAR *path, const WCHAR *sddl, DWORD f
WCHAR
*
full_name
;
HRESULT
hr
;
WINE_TRACE
(
"%s,%s,%#x
\n
"
,
wine_dbgstr_w
(
path
),
wine_db
gstr_w
(
sddl
),
flags
);
TRACE
(
"%s,%s,%#x
\n
"
,
debugstr_w
(
path
),
debu
gstr_w
(
sddl
),
flags
);
if
(
flags
)
return
E_INVALIDARG
;
...
...
@@ -314,61 +314,61 @@ HRESULT __cdecl SchRpcCreateFolder(const WCHAR *path, const WCHAR *sddl, DWORD f
HRESULT
__cdecl
SchRpcSetSecurity
(
const
WCHAR
*
path
,
const
WCHAR
*
sddl
,
DWORD
flags
)
{
WINE_FIXME
(
"%s,%s,%#x: stub
\n
"
,
wine_dbgstr_w
(
path
),
wine_db
gstr_w
(
sddl
),
flags
);
FIXME
(
"%s,%s,%#x: stub
\n
"
,
debugstr_w
(
path
),
debu
gstr_w
(
sddl
),
flags
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcGetSecurity
(
const
WCHAR
*
path
,
DWORD
flags
,
WCHAR
**
sddl
)
{
WINE_FIXME
(
"%s,%#x,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
,
sddl
);
FIXME
(
"%s,%#x,%p: stub
\n
"
,
debu
gstr_w
(
path
),
flags
,
sddl
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcEnumFolders
(
const
WCHAR
*
path
,
DWORD
flags
,
DWORD
*
start_index
,
DWORD
n_requested
,
DWORD
*
n_names
,
TASK_NAMES
*
names
)
{
WINE_FIXME
(
"%s,%#x,%p,%u,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
,
start_index
,
n_requested
,
n_names
,
names
);
FIXME
(
"%s,%#x,%p,%u,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
flags
,
start_index
,
n_requested
,
n_names
,
names
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcEnumTasks
(
const
WCHAR
*
path
,
DWORD
flags
,
DWORD
*
start_index
,
DWORD
n_requested
,
DWORD
*
n_names
,
TASK_NAMES
*
names
)
{
WINE_FIXME
(
"%s,%#x,%p,%u,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
,
start_index
,
n_requested
,
n_names
,
names
);
FIXME
(
"%s,%#x,%p,%u,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
flags
,
start_index
,
n_requested
,
n_names
,
names
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcEnumInstances
(
const
WCHAR
*
path
,
DWORD
flags
,
DWORD
*
n_guids
,
GUID
**
guids
)
{
WINE_FIXME
(
"%s,%#x,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
,
n_guids
,
guids
);
FIXME
(
"%s,%#x,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
flags
,
n_guids
,
guids
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcGetInstanceInfo
(
GUID
guid
,
WCHAR
**
path
,
DWORD
*
task_state
,
WCHAR
**
action
,
WCHAR
**
info
,
DWORD
*
n_instances
,
GUID
**
instances
,
DWORD
*
pid
)
{
WINE_
FIXME
(
"%s,%p,%p,%p,%p,%p,%p,%p: stub
\n
"
,
wine_dbgstr_guid
(
&
guid
),
path
,
task_state
,
action
,
info
,
n_instances
,
instances
,
pid
);
FIXME
(
"%s,%p,%p,%p,%p,%p,%p,%p: stub
\n
"
,
wine_dbgstr_guid
(
&
guid
),
path
,
task_state
,
action
,
info
,
n_instances
,
instances
,
pid
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcStopInstance
(
GUID
guid
,
DWORD
flags
)
{
WINE_
FIXME
(
"%s,%#x: stub
\n
"
,
wine_dbgstr_guid
(
&
guid
),
flags
);
FIXME
(
"%s,%#x: stub
\n
"
,
wine_dbgstr_guid
(
&
guid
),
flags
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcStop
(
const
WCHAR
*
path
,
DWORD
flags
)
{
WINE_FIXME
(
"%s,%#x: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
);
FIXME
(
"%s,%#x: stub
\n
"
,
debu
gstr_w
(
path
),
flags
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcRun
(
const
WCHAR
*
path
,
DWORD
n_args
,
const
WCHAR
**
args
,
DWORD
flags
,
DWORD
session_id
,
const
WCHAR
*
user
,
GUID
*
guid
)
{
WINE_FIXME
(
"%s,%u,%p,%#x,%#x,%s,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
n_args
,
args
,
flags
,
session_id
,
wine_db
gstr_w
(
user
),
guid
);
FIXME
(
"%s,%u,%p,%#x,%#x,%s,%p: stub
\n
"
,
debu
gstr_w
(
path
),
n_args
,
args
,
flags
,
session_id
,
debu
gstr_w
(
user
),
guid
);
return
E_NOTIMPL
;
}
...
...
@@ -377,7 +377,7 @@ HRESULT __cdecl SchRpcDelete(const WCHAR *path, DWORD flags)
WCHAR
*
full_name
;
HRESULT
hr
=
S_OK
;
WINE_TRACE
(
"%s,%#x
\n
"
,
wine_db
gstr_w
(
path
),
flags
);
TRACE
(
"%s,%#x
\n
"
,
debu
gstr_w
(
path
),
flags
);
if
(
flags
)
return
E_INVALIDARG
;
...
...
@@ -400,38 +400,38 @@ HRESULT __cdecl SchRpcDelete(const WCHAR *path, DWORD flags)
HRESULT
__cdecl
SchRpcRename
(
const
WCHAR
*
path
,
const
WCHAR
*
name
,
DWORD
flags
)
{
WINE_FIXME
(
"%s,%s,%#x: stub
\n
"
,
wine_dbgstr_w
(
path
),
wine_db
gstr_w
(
name
),
flags
);
FIXME
(
"%s,%s,%#x: stub
\n
"
,
debugstr_w
(
path
),
debu
gstr_w
(
name
),
flags
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcScheduledRuntimes
(
const
WCHAR
*
path
,
SYSTEMTIME
*
start
,
SYSTEMTIME
*
end
,
DWORD
flags
,
DWORD
n_requested
,
DWORD
*
n_runtimes
,
SYSTEMTIME
**
runtimes
)
{
WINE_FIXME
(
"%s,%p,%p,%#x,%u,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
start
,
end
,
flags
,
n_requested
,
n_runtimes
,
runtimes
);
FIXME
(
"%s,%p,%p,%#x,%u,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
start
,
end
,
flags
,
n_requested
,
n_runtimes
,
runtimes
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcGetLastRunInfo
(
const
WCHAR
*
path
,
SYSTEMTIME
*
last_runtime
,
DWORD
*
last_return_code
)
{
WINE_FIXME
(
"%s,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
last_runtime
,
last_return_code
);
FIXME
(
"%s,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
last_runtime
,
last_return_code
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcGetTaskInfo
(
const
WCHAR
*
path
,
DWORD
flags
,
DWORD
*
enabled
,
DWORD
*
task_state
)
{
WINE_FIXME
(
"%s,%#x,%p,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
flags
,
enabled
,
task_state
);
FIXME
(
"%s,%#x,%p,%p: stub
\n
"
,
debu
gstr_w
(
path
),
flags
,
enabled
,
task_state
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcGetNumberOfMissedRuns
(
const
WCHAR
*
path
,
DWORD
*
runs
)
{
WINE_FIXME
(
"%s,%p: stub
\n
"
,
wine_db
gstr_w
(
path
),
runs
);
FIXME
(
"%s,%p: stub
\n
"
,
debu
gstr_w
(
path
),
runs
);
return
E_NOTIMPL
;
}
HRESULT
__cdecl
SchRpcEnableTask
(
const
WCHAR
*
path
,
DWORD
enabled
)
{
WINE_FIXME
(
"%s,%u: stub
\n
"
,
wine_db
gstr_w
(
path
),
enabled
);
FIXME
(
"%s,%u: stub
\n
"
,
debu
gstr_w
(
path
),
enabled
);
return
E_NOTIMPL
;
}
dlls/schedsvc/svc_main.c
View file @
0e802b9c
...
...
@@ -101,7 +101,7 @@ static void schedsvc_update_status(DWORD state)
static
void
WINAPI
schedsvc_handler
(
DWORD
control
)
{
WINE_
TRACE
(
"%#x
\n
"
,
control
);
TRACE
(
"%#x
\n
"
,
control
);
switch
(
control
)
{
...
...
@@ -124,7 +124,7 @@ static RPC_STATUS RPC_init(void)
WCHAR
transport
[]
=
SCHEDSVC_TRANSPORT
;
RPC_STATUS
status
;
WINE_TRACE
(
"using %s
\n
"
,
wine_db
gstr_w
(
transport
));
TRACE
(
"using %s
\n
"
,
debu
gstr_w
(
transport
));
status
=
RpcServerUseProtseqEpW
(
transport
,
0
,
NULL
,
NULL
);
if
(
status
!=
RPC_S_OK
)
...
...
@@ -173,7 +173,7 @@ static void RPC_finish(void)
void
WINAPI
ServiceMain
(
DWORD
argc
,
LPWSTR
*
argv
)
{
WINE_
TRACE
(
"starting Task Scheduler Service
\n
"
);
TRACE
(
"starting Task Scheduler Service
\n
"
);
if
(
RPC_init
()
!=
RPC_S_OK
)
return
;
...
...
@@ -193,7 +193,7 @@ void WINAPI ServiceMain(DWORD argc, LPWSTR *argv)
RPC_finish
();
schedsvc_update_status
(
SERVICE_STOPPED
);
WINE_
TRACE
(
"exiting Task Scheduler Service
\n
"
);
TRACE
(
"exiting Task Scheduler Service
\n
"
);
}
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
len
)
...
...
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