ReactOS  0.4.12-dev-51-ge94618b
precomp.h
Go to the documentation of this file.
1 #ifndef _SCHEDSVC_PCH_
2 #define _SCHEDSVC_PCH_
3 
4 #define WIN32_NO_STATUS
5 #define _INC_WINDOWS
6 #define COM_NO_WINDOWS_H
7 #include <limits.h>
8 #include <stdarg.h>
9 #include <stdio.h>
10 #include <windef.h>
11 #include <winbase.h>
12 #include <winreg.h>
13 #include <winsvc.h>
14 #include <winuser.h>
15 #include <undocuser.h>
16 
17 #include <ndk/rtlfuncs.h>
18 
19 #include <atsvc_s.h>
20 
21 #include <wine/debug.h>
22 
23 #define JOB_NAME_LENGTH 9
24 
26 ULONG
27 NTAPI
29  PULONG Seed);
30 
31 typedef struct _JOB
32 {
34 
38 
45 } JOB, *PJOB;
46 
47 
48 extern DWORD dwNextJobId;
49 extern DWORD dwJobCount;
50 
51 extern LIST_ENTRY JobListHead;
53 
56 
57 extern HANDLE Events[2];
58 
59 
60 /* job.c */
61 
62 DWORD
64 
65 VOID
67 
68 LONG
69 SaveJob(
70  PJOB pJob);
71 
72 LONG
73 DeleteJob(
74  PJOB pJob);
75 
76 LONG
77 LoadJobs(VOID);
78 
79 VOID
81  _In_ PJOB pJob);
82 
83 VOID
85  _In_ PLIST_ENTRY StartListHead,
86  _In_ PJOB pJob);
87 
88 VOID
90  _In_ PLIST_ENTRY StartListHead);
91 
92 
93 /* rpcserver.c */
94 
95 DWORD
96 WINAPI
99 
100 #endif /* _SCHEDSVC_PCH_ */
LIST_ENTRY JobEntry
Definition: precomp.h:33
DWORD JobId
Definition: precomp.h:39
ULARGE_INTEGER StartTime
Definition: precomp.h:36
RTL_RESOURCE StartListLock
Definition: job.c:33
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG LoadJobs(VOID)
Definition: job.c:315
Definition: shell.h:41
RTL_RESOURCE JobListLock
Definition: job.c:30
#define NTSYSAPI
Definition: ntoskrnl.h:14
VOID DumpStartList(_In_ PLIST_ENTRY StartListHead)
Definition: job.c:582
DWORD GetNextJobTimeout(VOID)
Definition: job.c:39
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
UCHAR Flags
Definition: precomp.h:43
long LONG
Definition: pedump.c:60
VOID CalculateNextStartTime(_In_ PJOB pJob)
Definition: job.c:468
LONG SaveJob(PJOB pJob)
DWORD_PTR JobTime
Definition: precomp.h:40
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
Definition: rpc.c:26
struct _JOB * PJOB
UCHAR DaysOfWeek
Definition: precomp.h:42
struct _JOB JOB
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG DeleteJob(PJOB pJob)
unsigned char UCHAR
Definition: xmlstorage.h:181
LIST_ENTRY StartListHead
Definition: job.c:32
LPVOID lpParameter
Definition: kernel32.h:232
Definition: typedefs.h:117
uint32_t DWORD_PTR
Definition: typedefs.h:63
#define WINAPI
Definition: msvc.h:20
NTSYSAPI ULONG NTAPI RtlRandomEx(PULONG Seed)
LIST_ENTRY StartEntry
Definition: precomp.h:35
#define _In_
Definition: no_sal2.h:204
VOID InsertJobIntoStartList(_In_ PLIST_ENTRY StartListHead, _In_ PJOB pJob)
Definition: job.c:531
HANDLE Events[2]
Definition: schedsvc.c:40
#define JOB_NAME_LENGTH
Definition: precomp.h:23
unsigned int * PULONG
Definition: retypes.h:1
LIST_ENTRY JobListHead
Definition: job.c:29
unsigned int ULONG
Definition: retypes.h:1
DWORD DaysOfMonth
Definition: precomp.h:41
DWORD dwNextJobId
Definition: job.c:27
VOID RunNextJob(VOID)
Definition: job.c:121
Definition: precomp.h:31
DWORD dwJobCount
Definition: job.c:28