ReactOS 0.4.15-dev-7705-g2320c37
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
29 PULONG Seed);
30
31typedef struct _JOB
32{
34
37
45
46
47extern DWORD dwNextJobId;
48extern DWORD dwJobCount;
49
52
55
56extern HANDLE Events[3];
57
58
59/* job.c */
60
61VOID
63 HANDLE hTimer);
64
65VOID
67
68LONG
70 PJOB pJob);
71
72LONG
74 PJOB pJob);
75
76LONG
78
79VOID
81 _In_ PJOB pJob);
82
83VOID
86 _In_ PJOB pJob);
87
88VOID
91
92
93/* rpcserver.c */
94
98 LPVOID lpParameter);
99
100#endif /* _SCHEDSVC_PCH_ */
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
Definition: rpcserver.c:20
HANDLE Events[3]
Definition: schedsvc.c:40
LONG DeleteJob(PJOB pJob)
LIST_ENTRY JobListHead
Definition: job.c:29
RTL_RESOURCE JobListLock
Definition: job.c:30
LONG LoadJobs(VOID)
Definition: job.c:318
DWORD dwJobCount
Definition: job.c:28
VOID GetNextJobTimeout(HANDLE hTimer)
Definition: job.c:44
#define JOB_NAME_LENGTH
Definition: precomp.h:23
RTL_RESOURCE StartListLock
Definition: job.c:33
VOID InsertJobIntoStartList(_In_ PLIST_ENTRY StartListHead, _In_ PJOB pJob)
struct _JOB JOB
LIST_ENTRY StartListHead
Definition: job.c:32
VOID CalculateNextStartTime(_In_ PJOB pJob)
Definition: job.c:467
NTSYSAPI ULONG NTAPI RtlRandomEx(PULONG Seed)
VOID RunCurrentJobs(VOID)
Definition: job.c:122
struct _JOB * PJOB
DWORD dwNextJobId
Definition: job.c:27
LONG SaveJob(PJOB pJob)
VOID DumpStartList(_In_ PLIST_ENTRY StartListHead)
#define NTSYSAPI
Definition: ntoskrnl.h:12
unsigned long DWORD
Definition: ntddk_ex.h:95
#define _In_
Definition: ms_sal.h:308
long LONG
Definition: pedump.c:60
Definition: shell.h:41
Definition: precomp.h:32
UCHAR DaysOfWeek
Definition: precomp.h:41
UCHAR Flags
Definition: precomp.h:42
LIST_ENTRY JobEntry
Definition: precomp.h:33
DWORD_PTR JobTime
Definition: precomp.h:39
DWORD DaysOfMonth
Definition: precomp.h:40
FILETIME StartTime
Definition: precomp.h:35
DWORD JobId
Definition: precomp.h:38
Definition: typedefs.h:120
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t DWORD_PTR
Definition: typedefs.h:65
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180