-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f875a8
commit 22623e2
Showing
10 changed files
with
325 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ add_idl_headers(wineheaders | |
mfmediaengine.idl | ||
mfplay.idl | ||
mfreadwrite.idl | ||
schrpc.idl | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Task Scheduler Service definitions | ||
* | ||
* Copyright 2014 Dmitry Timoshkov | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA | ||
*/ | ||
|
||
cpp_quote("#define SCHEDSVC_TRANSPORT {'n','c','a','l','r','p','c',0}") | ||
cpp_quote("#define SCH_FLAG_STATE 0x10000000") | ||
|
||
import "oaidl.idl"; | ||
import "ocidl.idl"; | ||
|
||
[ | ||
uuid(86d35949-83c9-4044-b424-db363231fd0c), | ||
implicit_handle(handle_t schrpc_handle), | ||
version(1.0), | ||
pointer_default(unique) | ||
] | ||
interface ITaskSchedulerService | ||
{ | ||
typedef struct _TASK_USER_CRED | ||
{ | ||
[string] const WCHAR *user; | ||
[string] const WCHAR *password; | ||
DWORD flags; | ||
} TASK_USER_CRED; | ||
|
||
typedef struct _TASK_XML_ERROR_INFO | ||
{ | ||
DWORD line, column; | ||
[string] WCHAR *node; | ||
[string] WCHAR *value; | ||
} TASK_XML_ERROR_INFO; | ||
|
||
typedef [string] WCHAR **TASK_NAMES; | ||
|
||
HRESULT SchRpcHighestVersion([out] DWORD *version); | ||
HRESULT SchRpcRegisterTask([in, string, unique] const WCHAR *path, | ||
[in, string] const WCHAR *xml, [in] DWORD flags, | ||
[in, string, unique] const WCHAR *sddl, | ||
[in] DWORD task_logon_type, [in] DWORD n_creds, | ||
[in, size_is(n_creds), unique] const TASK_USER_CRED *creds, | ||
[out, string] WCHAR **actual_path, | ||
[out] TASK_XML_ERROR_INFO **xml_error_info); | ||
HRESULT SchRpcRetrieveTask([in, string] const WCHAR *path, | ||
[in, string] const WCHAR *languages, | ||
[in] unsigned long *n_languages, [out, string] WCHAR **xml); | ||
HRESULT SchRpcCreateFolder([in, string] const WCHAR *path, | ||
[in, string, unique] const WCHAR *sddl, [in] DWORD flags); | ||
HRESULT SchRpcSetSecurity([in, string] const WCHAR *path, | ||
[in, string] const WCHAR *sddl, [in] DWORD flags); | ||
HRESULT SchRpcGetSecurity([in, string] const WCHAR *path, | ||
[in] DWORD flags, [out, string] WCHAR **sddl); | ||
HRESULT SchRpcEnumFolders([in, string] const WCHAR *path, | ||
[in] DWORD flags, [in, out] DWORD *start_index, | ||
[in] DWORD n_requested, [out] DWORD *n_names, | ||
[out, string, size_is(,*n_names)] TASK_NAMES *names); | ||
HRESULT SchRpcEnumTasks([in, string] const WCHAR *path, | ||
[in] DWORD flags, [in, out] DWORD *start_index, | ||
[in] DWORD n_requested, [out] DWORD *n_names, | ||
[out, string, size_is(,*n_names)] TASK_NAMES *names); | ||
HRESULT SchRpcEnumInstances([in, string, unique] const WCHAR *path, | ||
[in] DWORD flags, [out] DWORD *n_guids, | ||
[out, size_is(,*n_guids)] GUID **guids); | ||
HRESULT SchRpcGetInstanceInfo([in] GUID guid, [out, string] WCHAR **path, | ||
[out] DWORD *task_state, [out, string] WCHAR **action, | ||
[out, string] WCHAR **info, [out] DWORD *n_instances, | ||
[out, size_is(,*n_instances)] GUID **instances, [out] DWORD *pid); | ||
HRESULT SchRpcStopInstance([in] GUID guid, [in] DWORD flags); | ||
HRESULT SchRpcStop([in, string, unique] const WCHAR *path, [in] DWORD flags); | ||
HRESULT SchRpcRun([in, string] const WCHAR *path, | ||
[in] DWORD n_args, [in, size_is(n_args),unique] const WCHAR **args, | ||
[in] DWORD flags, [in] DWORD session_id, | ||
[in, unique, string] const WCHAR *user, [out] GUID *guid); | ||
HRESULT SchRpcDelete([in, string] const WCHAR *path, [in] DWORD flags); | ||
HRESULT SchRpcRename([in, string] const WCHAR *path, [in, string] const WCHAR *name, [in] DWORD flags); | ||
HRESULT SchRpcScheduledRuntimes([in, string] const WCHAR *path, | ||
[in, unique] SYSTEMTIME *start, [in, unique] SYSTEMTIME *end, | ||
[in] DWORD flags, [in] DWORD n_requested, [out] DWORD *n_runtimes, | ||
[out, size_is(,*n_runtimes)] SYSTEMTIME **runtimes); | ||
HRESULT SchRpcGetLastRunInfo([in, string] const WCHAR *path, | ||
[out] SYSTEMTIME *last_runtime, [out] DWORD *last_return_code); | ||
HRESULT SchRpcGetTaskInfo([in, string] const WCHAR *path, [in] DWORD flags, | ||
[out] DWORD *enabled, [out] DWORD *task_state); | ||
HRESULT SchRpcGetNumberOfMissedRuns([in, string] const WCHAR *path, [out] DWORD *runs); | ||
HRESULT SchRpcEnableTask([in, string] const WCHAR *path, [in] DWORD enabled); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
add_definitions(-D__WINESRC__) | ||
remove_definitions(-D_WIN32_WINNT=0x502) | ||
add_definitions(-D_WIN32_WINNT=0x600) | ||
include_directories(${REACTOS_BINARY_DIR}/sdk/include/psdk) | ||
include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos/wine) | ||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) | ||
spec2def(taskschd.dll taskschd.spec) | ||
|
||
add_idl_headers(taskschd_idlheader schrpc.idl taskschd_tlb.idl) | ||
add_rpc_files(client schrpc.idl) | ||
|
||
list(APPEND SOURCE | ||
folder.c | ||
folder_collection.c | ||
main.c | ||
regtask.c | ||
task.c | ||
taskschd.c | ||
version.rc | ||
${CMAKE_CURRENT_BINARY_DIR}/taskschd_stubs.c | ||
${CMAKE_CURRENT_BINARY_DIR}/taskschd.def | ||
${CMAKE_CURRENT_BINARY_DIR}/schrpc_c.c) | ||
|
||
add_library(taskschd SHARED ${SOURCE}) | ||
add_dependencies(taskschd mf_idlheader) | ||
set_module_type(taskschd win32dll) | ||
target_link_libraries(taskschd wine uuid mfuuid) | ||
add_importlibs(taskschd oleaut32 ole32 advapi32 xmllite rpcrt4 msvcrt kernelbase ntdll) | ||
|
||
add_cd_file(TARGET taskschd DESTINATION reactos/system32 FOR all) |
Oops, something went wrong.