ReactOS  0.4.14-dev-552-g2fad488
atsvc.idl
Go to the documentation of this file.
1 /*
2  * Scheduler Service interface definition
3  */
4 
5 #include <ms-dtyp.idl>
6 
7 typedef [handle] const wchar_t *ATSVC_HANDLE;
8 
9 typedef struct _AT_ENUM
10 {
11  DWORD JobId;
14  unsigned char DaysOfWeek;
15  unsigned char Flags;
16  [string] wchar_t *Command;
18 
19 typedef struct _AT_INFO
20 {
23  unsigned char DaysOfWeek;
24  unsigned char Flags;
25  [string] wchar_t *Command;
27 
28 typedef struct _AT_ENUM_CONTAINER
29 {
33 
34 cpp_quote("#define JOB_RUN_PERIODICALLY 1")
35 cpp_quote("#define JOB_EXEC_ERROR 2")
36 cpp_quote("#define JOB_RUNS_TODAY 4")
37 cpp_quote("#define JOB_ADD_CURRENT_DATE 8")
38 cpp_quote("#define JOB_NONINTERACTIVE 16")
39 cpp_quote("#define JOB_INPUT_FLAGS (JOB_RUN_PERIODICALLY|JOB_ADD_CURRENT_DATE|JOB_NONINTERACTIVE)")
40 cpp_quote("#define JOB_OUTPUT_FLAGS (JOB_RUN_PERIODICALLY|JOB_EXEC_ERROR|JOB_RUNS_TODAY|JOB_NONINTERACTIVE)")
41 
42 [
43  uuid(1FF70682-0A51-30E8-076D-740BE8CEE98B),
44  version(1.0),
45 #ifdef __midl
46  ms_union,
47 #endif
49  endpoint("ncacn_np:[\\pipe\\atsvc]")
50 #ifndef __midl
51  ,explicit_handle
52 #endif
53 ]
54 interface atsvc
55 {
56  /* Function 0 */
58  __stdcall
59  NetrJobAdd(
60  [in, string, unique] ATSVC_HANDLE ServerName,
61  [in] LPAT_INFO pAtInfo,
62  [out] LPDWORD pJobId);
63 
64  /* Function 1 */
66  __stdcall
67  NetrJobDel(
68  [in, string, unique] ATSVC_HANDLE ServerName,
69  [in] DWORD MinJobId,
70  [in] DWORD MaxJobId);
71 
72  /* Function 2 */
74  __stdcall
76  [in, string, unique] ATSVC_HANDLE ServerName,
77  [in,out] LPAT_ENUM_CONTAINER pEnumContainer,
78  [in] DWORD PreferedMaximumLength,
79  [out] LPDWORD pTotalEntries,
80  [in, out, unique] LPDWORD pResumeHandle);
81 
82  /* Function 3 */
84  __stdcall
86  [in, string, unique] ATSVC_HANDLE ServerName,
87  [in] DWORD JobId,
88  [out] LPAT_INFO *ppAtInfo);
89 }
struct _AT_ENUM AT_ENUM
struct _AT_INFO * LPAT_INFO
NET_API_STATUS __stdcall NetrJobDel([in, string, unique] ATSVC_HANDLE ServerName, [in] DWORD MinJobId, [in] DWORD MaxJobId)
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
Definition: sock.c:82
unsigned char Flags
Definition: atsvc.idl:15
struct _AT_ENUM * PAT_ENUM
const wchar_t * ATSVC_HANDLE
Definition: atsvc.idl:7
wchar_t * Command
Definition: atsvc.idl:16
unsigned char DaysOfWeek
Definition: atsvc.idl:23
DWORD_PTR JobTime
Definition: atsvc.idl:12
struct _AT_INFO AT_INFO
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
DWORD DaysOfMonth
Definition: lmat.h:24
static const WCHAR version[]
Definition: asmname.c:66
struct _AT_ENUM_CONTAINER AT_ENUM_CONTAINER
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
NET_API_STATUS __stdcall NetrJobEnum([in, string, unique] ATSVC_HANDLE ServerName, [in, out] LPAT_ENUM_CONTAINER pEnumContainer, [in] DWORD PreferedMaximumLength, [out] LPDWORD pTotalEntries, [in, out, unique] LPDWORD pResumeHandle)
Definition: lmat.h:14
struct _AT_ENUM * LPAT_ENUM
#define D(d)
Definition: builtin.c:4543
Definition: lmat.h:22
struct endpoint endpoint
Definition: nis.h:15
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
#define __stdcall
Definition: typedefs.h:25
DWORD JobId
Definition: lmat.h:15
NET_API_STATUS __stdcall NetrJobAdd([in, string, unique] ATSVC_HANDLE ServerName, [in] LPAT_INFO pAtInfo, [out] LPDWORD pJobId)
unsigned char DaysOfWeek
Definition: atsvc.idl:14
struct _AT_INFO * PAT_INFO
uint32_t DWORD_PTR
Definition: typedefs.h:63
char string[160]
Definition: util.h:11
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
DWORD EntriesRead
Definition: atsvc.idl:30
unsigned char Flags
Definition: atsvc.idl:24
NET_API_STATUS __stdcall NetrJobGetInfo([in, string, unique] ATSVC_HANDLE ServerName, [in] DWORD JobId, [out] LPAT_INFO *ppAtInfo)
DWORD DaysOfMonth
Definition: lmat.h:17
struct _AT_ENUM_CONTAINER * PAT_ENUM_CONTAINER
uint32_t * LPDWORD
Definition: typedefs.h:57
Definition: atsvc.idl:54
wchar_t * Command
Definition: atsvc.idl:25
DWORD_PTR JobTime
Definition: atsvc.idl:21
struct _AT_ENUM_CONTAINER * LPAT_ENUM_CONTAINER
LPAT_ENUM Buffer
Definition: atsvc.idl:31